Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-08-08 Thread zxo102
Dennis: Thanks for your message. Let me try the double-buffer-operation. Ouyang Dennis Lee Bieber wrote: On 1 Aug 2006 01:10:18 -0700, zxo102 [EMAIL PROTECTED] declaimed the following in comp.lang.python: I just wrote the code following the example you provided. The image location can

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-08-01 Thread zxo102
Philippe, I just wrote the code following the example you provided. The image location can be controlled with the data from socket client. But only one thing confuse me. When the image keeps moving to a new location, the image at a old location is not deleted and is left behind in the frame. Do

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-31 Thread Vincent
I think you should use thread. I just write a similar program using thread. It works well You can try it, good luck! -- http://mail.python.org/mailman/listinfo/python-list

how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread zxo102
Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame. But the app.MainLoop() in wxpython looks like conflicting with the while 1: in socket server.

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Philippe Martin
zxo102 wrote: Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame. But the app.MainLoop() in wxpython looks like conflicting with the while

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Philippe Martin
Philippe Martin wrote: zxo102 wrote: Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame. But the app.MainLoop() in wxpython looks like

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Grant Edwards
On 2006-07-30, Philippe Martin [EMAIL PROTECTED] wrote: If you get rid of app.MaiLoop(), you basically get rid of all GUI events. You need to have you server in a separate thread. Isn't there any way to use wxWidgets socket callbacks in wxPython? -- Grant Edwards grante

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread zxo102
Philippe, Thanks a lot. I got the idea. Let me try it. Ouyang Philippe Martin 写道: Philippe Martin wrote: zxo102 wrote: Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread bryanjugglercryptographer
Philippe Martin wrote: Philippe Martin wrote: You need to have you server in a separate thread. PS: http://wiki.wxpython.org/index.cgi/LongRunningTasks And here's an important bit from the wxWindows doc: For communication between secondary threads and the main thread, you may use

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Philippe Martin
Grant Edwards wrote: On 2006-07-30, Philippe Martin [EMAIL PROTECTED] wrote: If you get rid of app.MaiLoop(), you basically get rid of all GUI events. You need to have you server in a separate thread. Isn't there any way to use wxWidgets socket callbacks in wxPython? -- Grant Edwards