py库: GUI(tkinter)

图形用户界面(Graphical User Interface,简称 GUI)

http://www.runoob.com/python/python-gui-tkinter.html  Python GUI编程(Tkinter) —— 菜鸟教程

随便看看:

http://www.cnblogs.com/joechinochl/articles/7485709.html  八款常用的 Python GUI 开发框架

http://www.cnblogs.com/monsteryang/p/6558693.html  python GUI编程(Tkinter)

http://www.cnblogs.com/monsteryang/p/6558904.html  简单的python GUI例子


注意:Python3.x 版本使用的库名为 tkinter,即首写字母 T 为小写。

import tkinter

例子1:

from tkinter import *def on_click():label['text'] = text.get()root = Tk(className='hello')
root.minsize(600, 400)label = Label(root, text="your message")
label.pack()text = StringVar()
text.set('请输入:')
entry = Entry(root)
entry['textvariable'] = text
entry.pack()frame = Frame(root)
frame.pack()
Button(frame, text="QUIT", fg="red", command=frame.quit).pack(side=RIGHT)
Button(frame, text="change", fg="blue", command=on_click).pack(side=LEFT)root.mainloop()

...

posted on 2017-12-06 00:47 bjhhh 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.cnblogs.com/qq21270/p/7990287.html

py库: GUI(tkinter)相关推荐

  1. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Menu的Command)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Menu的Command) 目录 tkinter应用案例 1.添加菜单栏组件 2.tkinter应用案例:添 ...

  2. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Menu/Menu的Command)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Menu/Menu的Command) 目录 tkinter应用案例 1.添加右键弹出菜单 2.点击一个按钮弹 ...

  3. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Canvas)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Canvas) 导读 动态演示调用python库的tkinter带你进入GUI世界(Canvas) 目录 t ...

  4. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Find/undo事件)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Find/undo事件) 导读 动态演示调用python库的tkinter带你进入GUI世界(Find/un ...

  5. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(text.insert/link各种事件)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(text.insert/link各种事件) 导读 动态演示调用python库的tkinter带你进入GUI世 ...

  6. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Button展示图片事件)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Button展示图片事件) 导读 动态演示调用python库的tkinter带你进入GUI世界(Button ...

  7. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Scale/Scale的Command)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Scale/Scale的Command) 导读 动态演示调用python库的tkinter带你进入GUI世界 ...

  8. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Listbox/Scrollbar)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Listbox/Scrollbar) 导读 动态演示调用python库的tkinter带你进入GUI世界(L ...

  9. Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(计算器简单功能)

    Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(计算器简单功能) 导读 动态演示调用python库的tkinter带你进入GUI世界(计算器简单功能) 目录 ...

最新文章

  1. 在C#里怎样获得当前Windows操作系统的语言种类?以及如何知道当前Windows版本?...
  2. 进程和线程的关系与区别
  3. HDU 4288 Coder [线段树]
  4. torch_geometric笔记:max_pool 与max_pool_x
  5. boost::unique_copy相关的测试程序
  6. html 轮播 平移,网站轮播图的实现-平移版
  7. Mybatis开发CRUD
  8. redux 源码详解
  9. 中年程序员对核心竞争力“不可替代”的重新认识
  10. Spark Streaming中流式计算的困境与解决之道
  11. pytorch 训练人脸精度不达标
  12. 王通讲生物信息学学习方法
  13. 量化投资与信用风险机器学习建模
  14. 定时任务Quartz 之 cron表达式(时间表达式)
  15. python实现键盘自动输入_如何使用Python实现自动化点击鼠标和操作键盘?
  16. DNS域名解析过程剖析
  17. 网络空间安全--密码学重点(适合提前自学的宝宝)
  18. 大数据毕业设计题目50例
  19. 除了迅雷,目前还有什么下载软件好用?以下这3款你听过吗?
  20. AWS - Amazon Simple Email(ASE) 邮件服务

热门文章

  1. c语言随机数表,C语言随机数
  2. Upload LABS Pass-10
  3. SQLi LABS Less-36
  4. Kali Linux渗透测试实战 1.3 渗透测试的一般化流程
  5. 不解禁administrator账号的情况下以管理员身份运行bat文件
  6. SOA面向服务架构——SOA的概念
  7. 【工具】FormatUtil.ava 常用工具类
  8. linux bash profile bash_profile 小结
  9. Android自动化测试 monkey 工具学习3
  10. linux-shell面试题