For some reason, even though I'm not sure why it's doing that, my program just closes the window instead of it doing what I want it to do
while True:
event, values = main_window.read()
if event in (None,"Exit"):
break
if event == 'GPU info':
print('cool')
main_window.close()
Any clues to how I change its behaviour to hide or do nothing when I press a button that is not exit?