Jan-31-2021, 08:41 PM
The problem you are seeing is easy to fix.
What I was asking for earlier was to just call the function and print what is returned. This is a useful debugging technique. When I write GUI code I never bind functions to buttons or events until I already know the function works. Once I know the code works any problems that occur after binding to the GUI are all binding problems.
def fill_addrbox(*args):Problem solved. You could even do this to see what kind of value is sent and if it is useful for your purposes.
def fill_addrbox(*args): print(args)I don't know if the query will work, or if it will return anything you can use to fill your combo box, but at least you can push buttons without crashing.
What I was asking for earlier was to just call the function and print what is returned. This is a useful debugging technique. When I write GUI code I never bind functions to buttons or events until I already know the function works. Once I know the code works any problems that occur after binding to the GUI are all binding problems.