python3.4 GUI
来源:互联网 发布:淘宝网店交易费用 编辑:程序博客网 时间:2024/06/06 04:28
python3.4中使用tkinter编写GUI界面程序,第一个例子,整体上来讲api为我们许多常用的默认属性,所以还是很好在这些基础上扩张我们的程序的
#!/usr/bin/env pythonimport tkinter as UI#回调函数def resize(ev = None): label.config(font='Hello %d bold' % scale.get())top = UI.Tk()top.geometry('250x150')label = UI.Label(top,text='Hello World!',font='Helvetica -12 bold')label.pack(fill=UI.Y,expand=1)scale = UI.Scale(top,from_ =10,to = 40,orient = UI.HORIZONTAL,command=resize)scale.set(12)#绘画界面,fill=UI.X,expand=1表示可以被撑开scale.pack(fill=UI.X,expand=1)quit = UI.Button(top,text="QUIT",command=top.quit,activeforeground='white',activebackground='red')quit.pack()#消息循环UI.mainloop()
0 0
- python3.4 GUI
- Python3.4 垃圾清理(GUI)
- Python3.4GUI Tkinter的使用
- Python3.4 GUI界面教程(菜单栏)
- Python3.4 tkinter GUI编程示例
- Python3.4 tkinter,PIL图片转换(GUI)
- Python3 GUI中Tkinter
- python3 GUI开发 (2)
- python3之多线程和tkinter gui
- python3 GUI 开发 (1)环境配置
- Ubantu环境下利用Python3+PyQt5+Eric6进行GUI编程
- Ubuntu环境下利用Python3+PyQt5+Eric6进行GUI编程
- pyqt5&python3 Gui 入门教程 (一) 第一个窗口
- python3.6+pyqt5实现GUI设计(一)
- python3.6+pyqt5实现GUI设计(二)
- python2.7与python3.5共存后,配置python3.5的idle font时会导致python2.7 gui不可打开
- Dr. GUI.NET #4
- C++ GUI Qt 4
- Eclipse之CTRL+左键直接进入方法函数Implementation
- Android笔记——Activity中的回传数据案例(装备选择)
- [深入理解Android卷一全文-第九章]深入理解Vold和Rild
- springmvc 拦截器
- python抓包解包
- python3.4 GUI
- base64等文本格式
- UVA_10003_CuttingSticks
- hdu 4228 Flooring Tiles DFS
- TC SRM664 DIV1 A
- 快排
- 1005:Number Sequence
- [leetcode] Valid Anagram
- 环境变量