stop tkinter window from freezing while program is sleeping

后端 未结 3 1144
一向
一向 2020-12-04 01:19

This is quite an essential part of my program and I need to have sorted out as soon as possible so anything would be a massive help.

My program consists of three mod

3条回答
  •  隐瞒了意图╮
    2020-12-04 01:49

    A GUI program is always waiting for some action to occur. When actions do occur, the event code corresponding to that action is executed. Therefore, there is no need to call sleep(). All you need to do is set it up so that the third program is executed from the appropriate event.

提交回复
热议问题