programming python 之tkinter初学

2015-04-23 0 750
programming python 之tkinter初学
#!/usr/bin/env python

from Tkinter import *
from tkMessageBox import showinfo

def reply( ):
    showinfo(title='popup', message='Button pressed!')

window = Tk( )
button = Button(window, text='press', command=reply)
button.pack( )
window.mainloop( )

遇见资源网 python programming python 之tkinter初学 http://www.ox520.com/15288.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务