私はTkinterにとても慣れていません。この「HelloWorld」のようなGUIプログラムをTkinterで作成しました。ただし、終了ボタンをクリックするたびに、プログラムがクラッシュします。前もって感謝します!
from Tkinter import *
import sys
class Application(Frame):
def __init__(self,master=None):
Frame.__init__(self,master=None)
self.grid()
self.createWidgets()
def createWidgets(self):
self.quitButton = Button(text='Quit',command=self.quit)#Problem here
self.quitButton.grid()
app = Application()
app.master.title("Sample application")
app.mainloop()