Ask coding questions

← Back to all posts
What's wrong with it??? Plz help...
CollinKunsman (108)

I made this program for School, but I don't know what's wrong with it. It won't run! Can you guys PLEASE tell me why it's not working??

class Application(Frame):
definit(self, master):
super(Application, self).init(master)
self.grid()
self.create_widgets()
def create_widgets(self):
self.buttn1 = Button(self, text = "I do nothing!")
self.buttn1.grid()
self.buttn2 = Button(self)
self.buttn2.grid()
self.buttn2.configure(text = "Me too!")
self.buttn3 = Button(self)
self.buttn3.grid()
self.buttn3["text"] = "Same here!"
root = Tk()
root.title("Broken Brokens 2")
root.geometry("200x85")
app = Application(root)
root.mainloop()

Comments
hotnewtop
ryanhcode (89)

What language and packages are you using?

ryanhcode (89)

@CollinKunsman I mean what coding language?

ryanhcode (89)

@CollinKunsman It looks like your code is in python, but it isn't indented properly. Can you tell me where the error is?

Zavexeon (1166)

Can you link the repl itself?