tkinter

!/usr/bin/env python

import Tkinter as tk
class Application(tk.Tk):
def init(self, master=None):
tk.Tk.init(self, master)
# super(self.class, self).init( master )
self.title('test')
self.grid()
self.createWidgets()

def createWidgets(self):
    self.quitButton = tk.Button(self, text='Quit', command=self.quit)
    self.quitButton.grid()

app = Application()
app.mainloop()

posted @ 2017-03-31 23:02  我的大金金  阅读(140)  评论(0编辑  收藏  举报