I’m trying to implement the double click function to open a new window and edit the information of a SQLite Database.
At the moment if I double click on a data of the table I get the error:
line 1968, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
TypeError: edit_data() takes 0 positional arguments but 1 was given
That’s the command I would the programm execute after double click (I will update the new page after)
def edit_data():
editor_data = Tk()
editor_data.title("Scheda Cliente")
editor_data.geometry("400x600")
And that is the code for double click:
self.customerlist.bind("<Double-Button-1>", edit_data)
self.customerlist.pack()
I tried to find a guide to do that without success, so I’m stuck here
Raffaele Allocca is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.