Python Forum
[Tkinter] should not be getting this exception...confused
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] should not be getting this exception...confused
#1
Hello,

I am trying to learn python class programming and I have run into an exception when trying to run a small program I found on the internet. It has me confused as I see people using the line of code with no problem

Error:
builtins.TypeError: Buttons() takes no arguments
the snippit of code I am referring to is

if __name__ == '__main__':
    root = tk.Tk()
    b = Buttons(root)
    root.mainloop()
can anybody explain why I getting this exception?
Reply


Messages In This Thread
should not be getting this exception...confused - by MrP - May-29-2021, 10:21 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020