Python Forum
TypeError: 'Table' object is not callable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError: 'Table' object is not callable
#13
just read your response give me a mo to check it


Oh okay, so by changing
b1 = Button(window, text="Search Entry", width=12)
b1 = grid(row=3, column=3)

b1 = Button(window, text="Add Entry", width=12)
b1 = grid(row=4, column=3)

b1 = Button(window, text="Update Selected", width=12)
b1 = grid(row=5, column=3)

b1 = Button(window, text="Delete Selected", width=12)
b1 = grid(row=6, column=3)

b1 = Button(window, text="Close", width=12)
b1 = grid(row=7, column=3)
to

b1.Button(window, text="Search Entry", width=12)
b1.grid(row=3, column=3)

b1.Button(window, text="Add Entry", width=12)
b1.grid(row=4, column=3)

b1.Button(window, text="Update Selected", width=12)
b1.grid(row=5, column=3)

b1.Button(window, text="Delete Selected", width=12)
b1.grid(row=6, column=3)

b1.Button(window, text="Close", width=12)
b1.grid(row=7, column=3)
I can then redefine
b1 = grid(row=2, column=3)
to something like

b1 = window
b1 = b1.grid(row=2, column=3)
Bit confused as I defined e1 as a button however, do I define the button after the button code?

I tried defining just B by itself to see if that would do it however it doesn't like that, would I need to define each button so b1 - b5?
Reply


Messages In This Thread
RE: TypeError: 'Table' object is not callable - by Melford - Jan-21-2020, 09:03 PM

Forum Jump:

User Panel Messages

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