标签:android style blog http color os
http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-12/
http://www.android100.org/html/201407/13/39698.html
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
标签:android style blog http color os
原文地址:http://www.cnblogs.com/jingzhishen/p/3860788.html