摘要: 环境: Python 2.6.6 mod_python-3.3.1 注意:在对mod_python-3.3.1 make之前修改 somedir+/src/connobject.c的142行 vim /usr/local/mod_python-3.3.1/src/connobject.c +142 阅读全文
posted @ 2016-03-06 22:22 zw~菜园子 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: 菜单 from tkinter import * # get widget classes from tkinter.messagebox import * # get standard dialogs def notdone(): showerror('Not implemented', 'Not 阅读全文
posted @ 2016-03-06 14:41 zw~菜园子 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 图像(Images) gifdir = "D:\MYhtml" #图片文件夹 from tkinter import * win = Tk() igm = PhotoImage(file=gifdir + "\my.gif") Button(win, image=igm).pack() win.ma 阅读全文
posted @ 2016-03-06 13:40 zw~菜园子 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Message and Entry组件 from tkinter import * msg = Message(text="Oh by the way, which one's Pink?") msg.config(bg='pink', font=('times', 16, 'italic')) m 阅读全文
posted @ 2016-03-06 09:21 zw~菜园子 阅读(362) 评论(0) 推荐(0) 编辑
摘要: from tkinter import * # get widget classes from tkinter.messagebox import askokcancel # get canned std dialog class Quitter(Frame): # subclass our GUI 阅读全文
posted @ 2016-03-06 09:10 zw~菜园子 阅读(346) 评论(0) 推荐(0) 编辑