Python tkinter使用Entry,怎样使用输入的参数

auforever888888 2011-03-10 11:17:57
使用ENTRY,想把输入的数作为一个变量的获取值,怎么编写命令,例如:

from Tkinter import*
root=Tk()
e=StringVar()
entry=Entry(root,textvariable=e)
entry.pack()
root.mainloop()
...全文
1074 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
上帝无言 2011-03-15
  • 打赏
  • 举报
回复
我建议你早换wxPython
iambic 2011-03-10
  • 打赏
  • 举报
回复
google tkinter entry
第一条结果就有:
http://effbot.org/tkinterbook/entry.htm
shiweifu 2011-03-10
  • 打赏
  • 举报
回复
tkinter还是挺好用的:D
LZ可以看下python核心编程
这本书里有介绍tkinter使用,蛮详细的

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧