All pastes #472959 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-05 23:05 UTC
rendered paste body
#!/usr/local/bin/python     1
from Tkinter import *

class Application(Frame):
    def __init__(self, master=None):
            Frame.__init__(self, master)
            self.grid()
            self.createWidgets()

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

app = Application()
app.master.title("Sample application")
app.mainloop()