python">#!/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初学
最后更新 2018-05-18 08:00 星期五 所属:
Python教程 浏览:553