Re: [Tutor] Problem with threads

2006-02-26 Thread Kent Johnson
David Cohen wrote: > Hi, > > Here is the code attached. It is a simple test program that open a gtk > window and connect to a server (might be an irc or telnet server). > When the button "Connect" is clicked, the thread (should) starts and > read what is coming from the server. But it never happen

Re: [Tutor] Problem with threads

2006-02-26 Thread David Cohen
Hi, Here is the code attached. It is a simple test program that open a gtk window and connect to a server (might be an irc or telnet server). When the button "Connect" is clicked, the thread (should) starts and read what is coming from the server. But it never happens... just when I click on the "

Re: [Tutor] Problem with threads

2006-02-26 Thread Kent Johnson
David Cohen wrote: > Hi all, > > I have a problem trying to use thread on python. > I import the threading module and execute this: > > def func_thread(): > something... > > new_thread = threading.Thread(target = func_thread) > new_thread.start() > > But the thread never really starts, just

Re: [Tutor] Problem with threads

2006-02-25 Thread Kent Johnson
David Cohen wrote: > Hi all, > > I have a problem trying to use thread on python. > I import the threading module and execute this: > > def func_thread(): > something... > > new_thread = threading.Thread(target = func_thread) > new_thread.start() > > But the thread never really starts, just

Re: [Tutor] Problem with threads

2006-02-25 Thread Danny Yoo
On Sat, 25 Feb 2006, David Cohen wrote: > I have a problem trying to use thread on python. I import the threading > module and execute this: > > def func_thread(): > something... > > new_thread = threading.Thread(target = func_thread) > new_thread.start() > > But the thread never really star

[Tutor] Problem with threads

2006-02-24 Thread David Cohen
Hi all, I have a problem trying to use thread on python. I import the threading module and execute this: def func_thread(): something... new_thread = threading.Thread(target = func_thread) new_thread.start() But the thread never really starts, just when I call the new_thread.join() method.