Home > other >  About tkinter data transmission between function and dynamic display
About tkinter data transmission between function and dynamic display

Time:10-13

 
Def getData () :
Loop to get the data
Def showData () :
Display data
The window=Tk ()
Bt=Button (Windows, text="start", the command=getData)
Bt. Pack (... )
Canvas=FigureCanvasTkAgg (showData... )
Canvas. Pack (... )
Window. The mainloop ()

Please, I need to start button control getData to get data, then data transmission to showData for display, and with the access to data, getData canvas constantly updated to realize dynamic display, how the data transmission between these two methods? I bow down to the great god answer first here,

CodePudding user response:

CodePudding user response:

Top of the

CodePudding user response:

CodePudding user response:

What are you going to do,,,

CodePudding user response:

reference 4 floor li905663280 response:
what are you going to do, to,,


GetData from external sensors to get the data, the code is very long, don't stick out... I want to get the data and dynamic in showData shows how to do it...
  • Related