Hang time after quick close
Bug #139879 reported by
Christopher Pax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gladex |
Fix Released
|
Medium
|
Christopher Pax |
Bug Description
After I click the execute button and quickly click close, the program hangs.
Answer:
This Problem is due to threading. I use threading to display a string of text one line at a time over a period of time in the status bar. To do this I open another thread. When you go to close the program the thread is still running, and so it waits till its destroyed.
Changed in gladex: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
After spending some time reading the threading module python docs. I used the fallowing, self found solution. _Thread_ _stop()
from * import threading
...
listOfOpenThreads = enumerate()
for thisThread in listOfOpenThreads:
print dir(thisThread) # this displays all the compoentents of the object "thisThread" this is what i used to find the thread stop function
try:
thisThread.
except:
pass