I have a popup dialog using GTK, which allows user to select "Yes" or "No".
Then the program flows depending on the selected answer.
The problem is that func() doesn't not wait for Popup_Dlg()
How can I half the program flow and let it wait until Popup_Dlg() returns a value?
The code is run on Windows, Linux and Solaris
Thanks,
Shawn G
Expand|Select|Wrap|Line Numbers
- class A(,...,..)
- def func(...)
- answ = Popup_Dlg(self, .., )
- if answ is True:
- action 1
- else:
- action 2
- class Popup_Dlg()
- ...