Tkinter-place_forget命令 [英] Tkinter - place_forget command

查看:139
本文介绍了Tkinter-place_forget命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在切换帧时使用了 place_forget 命令来隐藏按钮,如何在以后的程序中将按钮带回?还是我必须重新创建它?

If I have used the place_forget command in order to hide a button when switching frames, how can I bring the button back at a later stage in the program? Or would I have to recreate it?

推荐答案

您将需要再次调用 place .只要保留对原始窗口小部件的引用,就不必重新创建窗口小部件.

You will need to call place again. You do not have to recreate the widget as long as you keep a reference to the original widget.

这篇关于Tkinter-place_forget命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆