[python-win32] Pythonwin responsiveness

Bob Gailer bgailer at alum.rpi.edu
Fri Jun 20 09:20:01 EDT 2003


At 05:14 PM 6/20/2003 +1200, Blair Hall wrote:

>At 22:59 19/06/2003 -0600, Bob Gailer wrote:
>>At 04:50 PM 6/20/2003 +1200, Blair Hall wrote:
>>
>>>I was wondering if there is anything I could do
>>>to keep Pythonwin reponsive to
>>>user interaction while executing some code?
>>>(running on Windows XP)
>>>
>>>It seems that as soon as I have started to execute
>>>a script, that's it: Pythonwin just can't respond to any more
>>>user more interaction until the script returns.
>>>
>>>If I switch to another open application
>>>(say Excel, when the script is writing to a spreadsheet)
>>>then I cannot get back to Pythonwin, it
>>>does not seem to refresh the screen until the
>>>script has completed.
>>>
>>>Perhaps there is something simple I can do?
>>
>>Threading?
>
>Well, how?
>A script with multiple threads still ties up Pythonwin.
>Can you be a bit more explicit?

By "ties up" I assume you mean that you can't enter stuff in the 
interactive window. True? Well that's the nature of any python interpreter. 
I was thinking of your writing a GUI (Tkinter?) that could process user 
input while a thread handles the long-running stuff.

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003


More information about the Python-win32 mailing list