Jan-08-2019, 10:15 PM
I think I figured it out. Will post here for anybody else who may stumble upon this.
The way to get the two buttons to do 2 different function calls is to read the text of those buttons - in my case, they are Check DB for SUID, Submit, and Cancel.
The way to get the two buttons to do 2 different function calls is to read the text of those buttons - in my case, they are Check DB for SUID, Submit, and Cancel.
while True: # Read the Window event, value = window.Read() # Take appropriate action based on button if event == 'Check DB for SUID': checkdb() elif event == 'Submit': updatedb() elif event =='Cancel' or event is None: window.Close() break