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?
main_window.close() is in the while loop.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.