15,181 Topics

Member Avatar for
Member Avatar for mhslax13

Im in a computer security class and am working on a project involving linux viruses. If anyone knows anywhere I can obtain some code to work with it would be greatly appreciated as I'm really struggling finding any.

Member Avatar for woooee
0
68
Member Avatar for ryan_vietnow

Hello everyone,i'm starting to learn pytho now.Could anyone give me some advice of what is the best IDE for python there is based on your experiences guys. thanks.More power to the open source community.

Member Avatar for sneekula
0
150
Member Avatar for hellsing

I using window Vista home premium(32 bit) and I cannot use python after I save a file once I get the following error messages "socket connection error" "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal fire wall software is blocking the connection" I have to …

Member Avatar for Duoas
0
89
Member Avatar for jliu66

Hi, Dear my friends, I have a trick questions to ask you about python scripts for help. How can I set up a complied python code with a password so that nobody can touch or modify it and even copy it from one PC to another PC? In other words, …

Member Avatar for BearofNH
0
179
Member Avatar for fonzali

hi everybody , I have a program (below) but don't know how to direct the out put to the printer , can anyone help thanks [code=python] from calendar import * setfirstweekday(5) #saturday prcal(2008) raw_input('hit a key') [/code] another question is that I tried writing " saturday " instead of "5" …

Member Avatar for fonzali
0
302
Member Avatar for mhslax13

Ok im pretty new to coding in general and have two questions. 1. I downloaded a python script that packages my programs into an executable however im running Windows Vista(i believe this to be the problem) and when i try to run the executable i get a win32 error. 2. …

Member Avatar for mhslax13
0
86
Member Avatar for gusbear

when i start my program i write import graphics * def main(): but then when i try to create a button it doesn't work anyone know the problem??thanks

Member Avatar for Ene Uran
0
2K
Member Avatar for gusbear

can someone please post the correct method of the five click house or the newton's method from zelles book, reward promised,it is xmas?? thanks a mill need this for xmas tests!

Member Avatar for Duoas
0
272
Member Avatar for tuse

I am an absolute beginner to python. I would like to know how to download and install the modules. I am working on Windows. I am specifically looking to use the 'gasp' module. Any help would be highly appreciated.

Member Avatar for tuse
0
104
Member Avatar for jliu66

Hi, Dear my friends, I has been using python for a while. But I just realized that when you make a copy of python class, it is copying a link to the class. So when you make the change to the attritutes of objects, it will change other attributes in …

Member Avatar for jliu66
0
203
Member Avatar for a1eio

Hello, I was wondering whether it was possible to embed something made with pygame, like some sort of animated display or bouncing ball whatever, into a Tkinter made window, with tkinter buttons/frames etc... Anybody heard of this or know of if it can be done? Thanks a1eio

Member Avatar for a1eio
0
797
Member Avatar for johnnybgoode

I am trying to activate the Help > About button with no succes. I made a GUI with Glade3 with only a menu item in the main window. Here's my code: [code] #!/usr/bin/env python import sys try: import pygtk pygtk.require("2.0") except: pass try: import gtk import gtk.glade except: sys.exit(1) class …

Member Avatar for johnnybgoode
0
156
Member Avatar for nightwalker

Hello everybody, my name is Ludvig, I am a swedish student who educates myself to become an engineer. For my programming course I have made a minesweepergame, but to get the highest grade availible, I have to make it in graphics. I have succeded in doing a version without the …

Member Avatar for vegaseat
0
107
Member Avatar for voodoo_doctor

Hey there! Right now I'm working on a system that is built according to MVC-model. All three levels have try/catch statements for things where errors might occur. The problem is that I want all those messages to show up in GUI (View). Right now I'm having some troubles doing it …

Member Avatar for voodoo_doctor
0
67
Member Avatar for Mr.popo

Ive got my own python modules which I need to place somewhere so python can read them. Ive got two questions. 1. Wheres the best place to put modules? 2. It wont let me add modules to /usr/lib/python2.5? Thanks Mr.popo

Member Avatar for Mr.popo
0
1K
Member Avatar for laspal

Hi I wanted to know how can I make sure that table exist in my database. [code] class Record: def __init__(self): self.conn = MySQLdb.connect( host = 'localhost', user = 'root', passwd = 'abcd', db = 'justfun') self.cursor = self.conn.cursor() self.cursor.execute("DROP TABLE IF EXISTS book") self.cursor.execute( """CREATE TABLE book (name char(40), …

Member Avatar for katharnakh
0
3K
Member Avatar for axn

here is the snippet data = ''2007-12-31 Name (mike) Age (34).....' gregorian = time.strftime(data.split(" ")[0]) print gregorian this gives me "2007-12-31" i need to convert the gregorian date in the variable to julian date. i tried this but it gives me the current date julian = time.strftime('%j', time.localtime())

Member Avatar for Duoas
0
2K
Member Avatar for boni_go

Hello, I have some problem with os exception. In the traceback info I get only the errno without the description. for examplem when I write: [code=python] import os; os.listdir("no-exists-dir-name"); [/code] I get the exception: [code=python] Traceback (most recent call last): File "<interactive input>", line 1, in <module> WindowsError: [Error 3] …

Member Avatar for SteveWhite
0
450
Member Avatar for knish

Hi, I have two py programs. both have while 1: loops. Lets say File A has one while 1: loop and File B has another while 1: loop. File A has a break statement. File B has no break statement. File B is running. I now run File A. This …

Member Avatar for Duoas
0
99
Member Avatar for laspal

Hi I wanted to know how can I delete class object inside list. class Record: def __init__(self): self.list = [] def add(self): fname = raw_input("First Name:> ") lname = raw_input("Last Name:> ") street = raw_input("Street:> ") self.list.append( Person( fname, lname, street)) Now I have added my Person object into the …

Member Avatar for katharnakh
0
4K
Member Avatar for gaowei

I want to learn python in my holiday!But I don't know which python's book is well.Who can recommend one good book to me! how to learn python! What is important part of python? I'd like to have your advice as to me. Thanks in advance. Any help is much appreciated.

Member Avatar for Impact4ever
0
104
Member Avatar for seamus.boyle

I'm trying trying to use the Image.composite() function with the code below: [code=python] import Image im1 = Image.open("GetGif1.png") im2 = Image.open("GetGif2.png") im3 = Image.composite('im1','im2',"L") im.save('output.png') [/code] But I get this error: [code] Traceback (most recent call last): File "composite_images.py", line 11, in <module> im3 = Image.composite('im1','im2',"L") File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1960, …

Member Avatar for seamus.boyle
0
216
Member Avatar for gtselvam

I have a python script that will run a batch script. This batch script sets an environment variable say _BLDPATH. I want to grab this variable in the python script to use that variable later on. The problem is that even though the variable gets set properly when the batch …

Member Avatar for Duoas
0
217
Member Avatar for StrikerX11

Hi, I've been trying to code a simple file sharing system in python by using Discovery server -indexer- model Server: [CODE]#!bin/python import socket import sys import os import threading from utils import serialize, deserialize, PeerInfo class NotSupportedCommand(Exception): pass class DiscoveryServer(object): '''Indexer...''' def __init__(self, port, maxPeers=5): self.port=port addr=('', self.port) self.maxPeers=maxPeers self.supportedCommands=["/register", …

Member Avatar for StrikerX11
0
123
Member Avatar for morrison

[QUOTE=Ancient Dragon;267023]You cannot write directly to an *.xls file and expect Excel to read it because *.xls files are not plain text files -- they contain a lot of formatting information that is readable only by Excel program. The easiest way to do it is to creates *.csv files which …

Member Avatar for sneekula
0
139
Member Avatar for GRaymer

Just wondering if anyone has experience with wxPython. I've been looking for info about the spinButton I want to increment it at 5's or 10's just wondering if anyone has some quit hints or info. Thanks

Member Avatar for vegaseat
0
81
Member Avatar for sneekula

I want to make a small Molecular Weight calculator. If the user for instance enters the molecular formula for dichloro-benzoic acid as "C6H3Cl2COOH", I would like to split it into a list like ['C6', 'H3', 'Cl2', 'C', 'O', 'O', 'H'] so I can then combine all the carbons, chlorines, oxygens …

Member Avatar for sneekula
0
115
Member Avatar for maslak
Member Avatar for sneekula
0
130
Member Avatar for laspal

Hi I am new to python. So i am having problem while coding. Here the code import sys class Person: def __init__(self): self.list = [] def AddContact(self): fname = raw_input("First Name:> ") lname = raw_input("Last Name:> ") street = raw_input("Street:> ") self.list = [ fname, lname, street] def ListAll(self): print …

Member Avatar for sneekula
0
100
Member Avatar for laseredd

I have created a small program in Python that asks you if you have done something, and then logs the date, question(s) and answer(s) to a file. I thought of writing a program like this while walking to the toilet and twenty minutes later I had finished the program. I …

Member Avatar for laseredd
0
129

The End.