Skip to content
Advertisement

Toggle tkinter window visibility

I’m trying to toggle tkinter window visibility when I click p.

JavaScript

Advertisement

Answer

Not sure what keyboard is though I am using it is the keyboard library. Anyway you can use tkinter itself for this. Here is an example to set you up:

JavaScript

Also keep a note that wm_attributes() and attributes() are the same.

Advertisement