tkinter root.mainloop with While True loop

前端 未结 2 2040
渐次进展
渐次进展 2020-12-18 15:41

I am using tkinter to display some labels based on voltages I am reading. However, it stops executing after one read. I have found that it is due to root.mainloop(). But I a

2条回答
  •  [愿得一人]
    2020-12-18 16:12

    An alternative solution I found to work better - just start your while loop in another thread, and use global variables. My code worked perfectly doing it that way.

提交回复
热议问题