I have find many questions like mine in site. But these answers can't help me, so I had to put a question again.
from tkinter import *
class Application(Frame):
def __init__(self, master = None):
Frame.__init__(self, master)
self.pack()
self.createWidgets()
def createWidgets(slef):
self.helloLabel = Label(self, text = 'Hello, world!')
self.helloLabel.pack()
self.quitButton = Button(self, text='Quit', command = self.quit)
self.quitButton.pack()
app = Application()
app.master.title('Hello World')
app.mainloop()
my os is windows10 and python version is 3.4.3
Frame is not defined?name 'Frame' is not defined