Hello,
I was longer time away of python programming in general, so please excuse my non-knowledge.
I have two questions:
- in C#, often one uses thread.sleep() in loops, (I don’t know, if that is ok anyway), to give mainthread and thread time.
Is there any necessity to prevent cpu overusage in python?
the thread subject looks big and confusing (for example, there are two moduls, thread and threading).
Is there a difference in thread handling in python and wxPython?
Anyone knows a good link, which explains only the most importing issues about threading?
- actual case:
I don’t have a runnable code now, so I try to explain in pseudo code:
Threadstatt
[code]
here I post a command event, which should show a custom dialog
and her I want to wait in the thread, until the custom dialog is left by ok or cancel button.
[code]
Threadend
What thread events/locks (or how), … should I use to wait for the dialog is finished?
(I have used a global variable to indicate the dialog is closed, but this can never be the proper way).
So basically, I would need some base knowledge about threads.
Thank you!