аватар danmodenov@mail.ru · 01.01.1970 03:00

Sleep and While True in Tkinter

n

For example, there is a code:

n
   Def   tk_sleep  (): n statatus_send = tk () n n. Status_Send.geometry ( '400x340' ) n tx_1 = text (status_send, font = ( '' times' ,  12 ), width =  62 , height =  15 , wrap = word) nor n. tx_1.pack () n  for  i  in   range  ( 10 ): n tx_1.insert ( 1.0 ,  'Hello world' ) n TX_1.UPDATE () N Sleep ( 5 ) n   n 

At the same time, the whole window with widget freezes. How to avoid this?

n

Latest

Similar