Re: [PyKDE] Threading QApplications. Possible?

2004-09-21 Thread Trost Johnson
Gordon Tyler wrote: A couple of things to note here: 1. The Python threading module is higher-level and easier to use than the lower-level thread module. 2. I don't think Python and Qt threading mix well, so you should use QThread and related classes rather than Python threading. Python

Re: [PyKDE] Threading QApplications. Possible?

2004-09-21 Thread David Boddie
On Mon, 20 Sep 2004 20:52:01, Trost Johnson wrote: Suppose the minimal program: def foo(): app=QApplication(sys.argv) button=QPushButton(Hello World, None) app.setMainWidget(button) button.show() app.exec_loop() And I say thread.start_new_thread (foo,

Re: [PyKDE] Threading QApplications. Possible?

2004-09-20 Thread Gordon Tyler
Trost Johnson wrote: Suppose the minimal program: def foo(): app=QApplication(sys.argv) button=QPushButton(Hello World, None) app.setMainWidget(button) button.show() app.exec_loop() And I say thread.start_new_thread (foo, ()) Then the python console freezes Is it not possible

Re: [PyKDE] Threading QApplications. Possible?

2004-09-20 Thread Ken Godee
def foo(): app=QApplication(sys.argv) button=QPushButton(Hello World, None) app.setMainWidget(button) button.show() app.exec_loop() And I say thread.start_new_thread (foo, ()) Then the python console freezes Is it not possible o thread up multiple QApplications? How is this

Re: [PyKDE] Threading QApplications. Possible?

2004-09-20 Thread Phil Thompson
On Monday 20 September 2004 9:02 pm, Ken Godee wrote: def foo(): app=QApplication(sys.argv) button=QPushButton(Hello World, None) app.setMainWidget(button) button.show() app.exec_loop() And I say thread.start_new_thread (foo, ()) Then the python console