Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Freeze with wxpython on python 2.3 or python 2.4 on Win32 with Thread

Reply
Thread Tools

Freeze with wxpython on python 2.3 or python 2.4 on Win32 with Thread

 
 
Tsubasa[Hokage]
Guest
Posts: n/a
 
      01-26-2005
first problem:

With Idle environnement under Win32, all freeze after with bunch of
code:

#!/usr/bin/python
import threading,time

class T (threading.Thread) :
def __init__(self,_a,_b) :
threading.Thread.__init__(self)
self.a = _a
self.b = _b
def run(self) :
print "T(%d,%d)"%(self.a,self.b)
time.sleep(3)
print "T(%d,%d)=>%d"%(self.a,self.b,self.a+self.b)
return self.a+self.b

t = T(3,5)
t.start()


All freeze when sleep command are execute.
Second part of this problem, I have a GUI in wxpython, when I create
new thread i can't write new data in widget like a multibox when i am
in a thread but i can retrieve data ( GetValue works but SetValue
freeze ).

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
freeze string fails to freeze ??? jwaala.amplify@gmail.com Ruby 5 03-15-2007 11:29 PM
wxPython problem with freeze.py =?iso-8859-1?B?aWFuYXLp?= Python 0 04-05-2006 09:22 PM
RE: [python-win32] simulate DoEvents by python/wxpython Mark Hammond Python 0 10-26-2005 11:15 PM
Freeze with wxpython on python 2.3 or python 2.4 on Win32 with Thread Tsubasa[Hokage] Python 0 01-27-2005 01:47 PM
signaling a ruby thread from a win32 native thread Vincenzo Piombo Ruby 1 05-21-2004 02:43 AM



Advertisments