Ask coding questions

← Back to all posts
I need help!
CollinKunsman (108)

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
ArchieMaclean (932)

Assuming that your repl is this one, here is a fixed version I made: https://repl.it/@ArchieMaclean/Broken-Button-2

Hope that helps :)

Geocube101 (645)

It would've been easier to post the repl link.
what is init; did you mean __init__?

CollinKunsman (108)

@Geocube101 I did. I guess the post somehow removed the ___´s.

Geocube101 (645)

@CollinKunsman Can you post the repl link?

ArchieMaclean (932)

@CollinKunsman if you have __ around a word, then it styles it by making it italic.
Can you stop posting it multiple times, and just post a link to the repl please?