Python 中的 TK编程

可爱的 Python:Python 中的 TK编程

http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-12/

 

python checkbox 用法详解

http://www.android100.org/html/201407/13/39698.html

 

Tkinter GUI编程——pack

http://blog.sina.com.cn/s/blog_4b5039210100epkl.html

 


环境安装:

sudo apt-get install python-t

 python tkinter 窗口居中对齐:

 1     from Tkinter import *
 2     def center_window(w=300, h=200):
 3         # get screen width and height
 4         ws = root.winfo_screenwidth()
 5         hs = root.winfo_screenheight()
 6         # calculate position x, y
 7         x = (ws/2) - (w/2)   
 8         y = (hs/2) - (h/2)
 9         root.geometry(%dx%d+%d+%d % (w, h, x, y))
10     root = Tk()
11     center_window(500, 300)
12     root.mainloop()

https://www.centos.bz/2013/01/python-tkinter-center-windows/

 








aa

Python 中的 TK编程,布布扣,bubuko.com

Python 中的 TK编程

上一篇:python打包成.exe工具py2exe0-----No such file or directory错误


下一篇:python入门语法总结