Event for multithread help advice

2007-10-27 Thread JoeSox
I have two threads going class guiThread(threading.Thread) class mainThread(threading.Thread) Within the guiThread, I have an instance of class GUIFramework(Frame) in this Tkinter instance I have a ListBox. The second thread, mainThread, has an instance of a custom class the will need to send out

Re: Python project solicitation

2007-08-21 Thread JoeSox
On 8/21/07, Greg Copeland <[EMAIL PROTECTED]> wrote: > > On Aug 20, 9:35 pm, JoeSox <[EMAIL PROTECTED]> wrote: > > I must say this thing is pretty cool. I had a coworker try it out and > > he ran into problems getting it to run on his Linux OS. So I am > >

Python project solicitation

2007-08-20 Thread JoeSox
Hello All, I was wondering if anyone would be interested in improving a module I quickly hacked together this past Sunday: pswrdgen.py It is a semantic password generator that uses WordNet 2.1, random capitalization, and character swapping. http://code.google.com/p/pswrdgen/ I must say this thin

Re: 'REPL' style IDE

2007-08-20 Thread JoeSox
On 8/20/07, JoeSox <[EMAIL PROTECTED]> wrote: > On 8/20/07, beginner <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > > > > I am using the Wing IDE. It works great when developing applications, > > but the workflow is like Visual Studio -- after you execute it

Re: 'REPL' style IDE

2007-08-20 Thread JoeSox
On 8/20/07, beginner <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I am using the Wing IDE. It works great when developing applications, > but the workflow is like Visual Studio -- after you execute it or > debug it, the python script ends. > > What I want is an interactive interpreting environment

Re: How do I call anonymous classes from imported modules?

2007-08-20 Thread JoeSox
On 8/19/07, James Stroud <[EMAIL PROTECTED]> wrote: > This was the poor design I was hinting to. do_foobar is type-checking > for ticker. "Casting" as you might think of it does not exist in python. > Creating new objects based on the values of existing objects (lets call > it "conversion" for lack

Re: How do I call anonymous classes from imported modules?

2007-08-19 Thread JoeSox
On 8/19/07, James Stroud <[EMAIL PROTECTED]> wrote: > Quick and dirty (you could also use a try: except:): > > f = __import__(module_name) > for anobj in f.__dict__.values(): > if hasattr(anobj, 'do_foobar'): > anobj.do_foobar() > > Note that this does not test whether anobj is a class as thi

How do I call anonymous classes from imported modules?

2007-08-19 Thread JoeSox
I am importing 3rd party modules via a plugin script. I wish to iterate thru the modules and call a common method like .do_foobar() or something with all the imports. But I can't figure out how to do something like below without knowing the class name before hand. Is there a builtin that helps cal