WINXP vs. LINUX in threading.Thread

Kent schrieb:

hello all,

i want to add a “new update notification” feature to my wxPython appl.

The codes below do the job. The logic is simple enough, I don’t think

it needs to be explained.

since sometimes, under windows, proxy setting was a script. and was

set in IE. In this case, connecting to the HTML will take relative

long time. I therefore run the following codes in a new Thread

(subclass of threading.Thread), so that user don’t have to wait during

the version checking period.

Under Linux, it worked smoothly. But under Windows XP, it didn’t. If

there was new updates, the notification dialog can show, but no text,

icon, … on it. Then, the whole application didn’t response any

longer. :frowning: I have to force stop the application process.

where is the problem?

GUI-toolkits and threads usually are not a good idea (Qt4 being an exception to that rule, at least they claim that). Google wxPython + threading for answers how to solve this - essentially, you need to create a timer or event-based solution that allows your background-thread to inject a status message to the main eventloop.

Diez

···

---------- Forwarded message ----------
From: Diez B. Roggisch deets@nospam.web.de

Date: Wed, Apr 22, 2009 at 11:01 PM
Subject: Re: WINXP vs. LINUX in threading.Thread
To: python-list@python.org

http://mail.python.org/mailman/listinfo/python-list

http://www.goldwatches.com/Watches.asp?Brand=71