What's up
I have searched I google and I did the finger crawling I also hit other forums.
My question is, is there anyone who is experianced with pythonios. I'm having trouble with tkinter import, I'm following a python PDF for beginners I'll give you guys the code and the error
Code:
from tkinter import *
class application(Frame):
def say_yeh(self):
print("yeh! your buttons just did something!")
def createWidgets (self):
self.QUITBUTTON = Button(self)
self.QUITBUTTON["text"] = QUITBUTTON
self.QUITBUTTON["fg"] = "red"
self.QUITBUTTON["command"]= selfquit
self.QUITBUTTON.pack({side : left})
self.do_something = Button(self)
self.do_something ["text"] = "CLICK TO DO SOMETHING BUTTON",
self.do_something["command"] = self.say_yeh
self.do_something({side : left})
def _int_(self, master=None):
Frame._init_(self, master)
self.pack()
self.creatWidgets()
root = TK()
app = Application(master=root)
app.mainloop()
root.destroy()
Error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/mobile/Applications/3012E63C-E6FF-40CC-9CB9-73D671212DC0/Documents/User Scripts/tkinter.py", line 3, in <module>
class application(Frame):
NameError: name 'Frame' is not defined