May-11-2019, 07:06 PM
It is not advisable to use * imports see this thread
It is advisable to use classes when doing GUI programs.
What doesn't want to update your window ?
If you mean it doesn't do the
Even if this was not GUI code theres no looping to re-ceck the value of state.
GUI event driven code has to be written differently then normal code logic a loop would not work.
It is advisable to use classes when doing GUI programs.
What doesn't want to update your window ?
If you mean it doesn't do the
if state==1:
condition, this will only be read the one time before it starts the GUI mainloop.Even if this was not GUI code theres no looping to re-ceck the value of state.
GUI event driven code has to be written differently then normal code logic a loop would not work.