Lucas Meier Lucas Meier - 4 months ago 11
Python Question

interactive: How to select the defined Frame in?

I have a problem using n

Here is the plan:

I am just a beginner. But I just think the easist way to do it might be,

Hope you understand my poor English and my beginners question. Here is the code.
Thank you all.

import matplotlib
matplotlib.use('TkAgg')


root.mainloop()
return
Main()

Answer

If you wont to show it in frame_0, i don't know why you are setting the master=root. Simply change:

dataPlot = FigureCanvasTkAgg(f, master=root)

to:

dataPlot = FigureCanvasTkAgg(f, master=Frame_0)

Also you don't need that root.mainloop() at the end of the function.