Re: Hiding Console Output

2006-08-02 Thread kyle.tk
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Re: Python riddle

2005-12-05 Thread kyle.tk
SPE - Stani's Python Editor wrote: > I know that this code is nonsense, but why does this print 'Why?' > > a = 1 > if a >2: > try: > 5/0 > except: > raise > else: > print 'why?' last time i checked this should print 'why?' I have no idea how you got it to print 'Why?'

Re: Newbie Question

2005-12-05 Thread kyle.tk
solaris_1234 wrote: > I am trying to learn Python and I have a few questions. > > I have created a Class that is essentially a canvas with a red > background. After creation I want to change the background to green. > However I am having problems doing this. > > Here is my code: > > from Tkinter i

putting a string in Mac Address form

2005-10-30 Thread kyle.tk
I came up with this. Is there a better (more pythonic) way to do it? import string def mac_to_norm(mac): def bad_char(char): if char not in string.hexdigits: return False return True mac = filter(bad_char,mac) if len(m

Best way to share a python list of objects

2005-10-07 Thread kyle.tk
So I have a central list of python objects that I want to be able to share between different process that are possibly on different computers on the network. Some of the processes will add objects to list and another process will be a GUI that will view objects in the list. I want this all to happe

dynamicly updating an objects fields

2005-08-30 Thread kyle.tk
I want to make a function that will work like this: def updateField(object, fieldName, newValue): object.fieldName = newValue fieldName could be anything, the list of objects fields will grow as my project goes on and i want to reuse the same code without adding more if statements to it

network mapper Gui question

2005-08-27 Thread kyle.tk
I am trying to make a program much like cheops that will make a graphical representation of my network. What would be the best language to make the actuall interface in, Tkinter, wxPython, PyGtk? And in those what module would work for something like this. It needs to be able to redraw it self abou