Tkinter
#图形界面
from tkinter import *
class Application (Frame):
def __init__(self,master=None):
Frame.__init__(self,master)
self.pack()
self.createWidgets()
def createWidgets(self):
self.helloLabel=Label(self,text='niubi')
self.helloLabel.pack()
self.button=Button(self,text='quit',command=self.quit)
self.button.pack()
def hello(self):
name = self.nameInput.get() or 'world'
messagebox.showinfo('Message', 'Hello, %s' % name)
app=Application()
app.master.title('biubi')
app.mainloop()
太浅,需要深入学习和应用