python使用Tkinter做Gui如何显示用forget隐藏的控件
创建控件
bt=tkinter.Button(root,text='button')
bt.place(x=5,y=5)
bt.place_forget() #隐藏控件
如何使隐藏的控件再次显示出来
再次bt.place(),不行么?
再次bt.place() 还有传入x=5,y=5 不然不会显示
再显示就再做一次:
bt=tkinter.Button(root,text='button')
bt.place(x=5,y=5)
bt.place()
尽量不要用PLACE,用PACK或GRID
还有其他的方法吗
相关问答:
python如何解压缩.Z的文件啊,在windows系统环境下
Q7Z 是一款基于 Qt4 的 7z 压缩工具
http://code.google.com/p/k7z/
开源的
http://sourceforge.net/projects/k7z/
LS的能具体说一说吗?
......
python "$cur_path/script/upgrade.py" "$@"
你看看upgrade.py的内容就知道了
传给 upgrade 的命令行参数
把"$@"给 "$cur_path/script/upgrade.py" 处理。
......
已知Python 中:
s = unicode("测试", "gb2312")
s = u'\u6d4b\u8bd5'
print s
测试
在Delphi里面如何将\u6d4b\u8bd5这样的还原成Gb2312的汉字呢?
找到个方法
......
请问下,我的是python2.5安装了PIL模块,然后编写程序打开本机上的一个图片时,为什么老出现错误呢,老是找不到图片,错误提示如下:File "C:\Python25\Lib\site-packages\PIL\Image.py", line 1888, in o ......
#include <Python.h>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
vector <string> ......