root.bind("<Control-Alt-g><f9>", close_app)
I tried multiple things but I just want the function to start when the keys are pressed, when I removed the f9 it worked, but it doesn't now. I don't know what to do.
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.Community– Community Bot2025年01月09日 20:18:09 +00:00Commented Jan 9, 2025 at 20:18
1 Answer 1
The only way I found to bind multiple keys or combinations is to bind them separately:
root.bind("<Control-Alt-g>", close_app)
root.bind("<F9>", close_app)
# Rest of the code
root.mainloop()
Sign up to request clarification or add additional context in comments.
Comments
lang-py