Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python TK.lift()和matplotlib。提升原木';t执行“;“准时”;_Python_Matplotlib_Tk - Fatal编程技术网

Python TK.lift()和matplotlib。提升原木';t执行“;“准时”;

Python TK.lift()和matplotlib。提升原木';t执行“;“准时”;,python,matplotlib,tk,Python,Matplotlib,Tk,对于我的代码发生了什么,我有点困惑。我有一个tk窗口,可以根据数据生成绘图。当我点击“ALL”按钮时,所有的绘图都应该有各自的功能,我希望tk窗口弹出到顶部。它执行提升命令,但其他窗口在该命令完成后完成打印。结果是窗口为#3或4或其他值。其他命令完成后,如何确保电梯运行 def display_all(self): for x in range(0,len(self.thePlots)): # call all the plot functions --n

对于我的代码发生了什么,我有点困惑。我有一个tk窗口,可以根据数据生成绘图。当我点击“ALL”按钮时,所有的绘图都应该有各自的功能,我希望tk窗口弹出到顶部。它执行提升命令,但其他窗口在该命令完成后完成打印。结果是窗口为#3或4或其他值。其他命令完成后,如何确保电梯运行

def display_all(self):
    for x in range(0,len(self.thePlots)):
        # call all the plot functions
        --not included--
    self.lift()

继续我的研究,似乎这可能是一个线程问题解决了?你如何显示绘图?您是自己手动将它们嵌入Tkinter帧中,还是使用
plt.show
?我使用的是Tkinter帧。