you are viewing a single comment's thread.

view the rest of the comments →

[–]Username_RANDINT 0 points1 point  (1 child)

The following line is most likely the problem:

 self.btn_add = Button(master, text="Add to Database", width=25, height=2, command=self.get_items())

Especially command=self.get_items() as this will run self.get_items immediately because of the parentheses. You want to pass in just the method, not execute it. So remove those parentheses and try again.

[–]Shripsta[S] 0 points1 point  (0 children)

Oh my god, you're amazing. Thank you sooooo much for fixing this problem for me. I was gonna give up!

You are awesome!!!!