I have a combobox used with Tkinter I cannot get bind to execute appropriately. Currently I have:
This executes the following (or should, rather):
If I use lambda, it doesn't execute at all. If I remove lambda, then the bind executes as soon as the toplevel opens and not when changed. I've run this through debug so I can see where it's not executing the function properly - or at all. Not sure what else I should post here 'code-wise' so please feel free to ask if more information is neededed.
1 |
self .ap_reason.bind( "<<ComboboxChanged>>" , self .Callback()) |
1 2 |
def Callback( self ): print ( "here" ) |