blaz1988 blaz1988 - 3 months ago 22
Python Question

How To Hide Tkinter python Gui

anyone know how to hide python GUI Tkinter,
I 've created keylogger, for GUI I used python module Tkinter , I want to add button called HIDE, so when user click it it will hide GUI , and when user press key like CTRL+E , it should unhide GUI....?

Answer

To hide the default root window you can use

root.withdraw()

and to make it visible again you can use

root.deiconify()