I'm trying to utilize partial in order to bind an image to it's associated name in a list "you'll see what I mean" but I'm getting a TypeError thrown on it, this is my first time trying to work with partials so I'm just not quite sure what's going on:
self.lab5.bind('<Button-1>',partial(self.search,val=mem)) '''/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/''' def search(self,val): pop_up(val)
Exception in Tkinter callback Traceback (most recent call last): File "C:\Python32\lib\tkinter\__init__.py", line 1399, in __call__ return self.func(*args) TypeError: search() got multiple values for keyword argument 'val'
any insight would be greatly appreciated!
Edited 5 Years Ago by pyguy62: n/a