Tkinter中的Sleep与While True
📁 讨论, 苏维埃, Python 版本讨论:Python 3.x 最新动态, 新手
例如,有一段代码:
def tk_sleep():
status_send = tk()
status_send.geometry('400x340')
tx_1 = Text(status_send, font=('Times', 12), width=62, height=15, wrap=WORD)
tx_1.pack()
for i in range(10):
tx_1.insert(1.0, 'Hello world')
tx_1.update()
sleep(5)