I use windows-xp python 2.6
Could I have your help.
I need to hide and then show a Tkinter root window. And also "remove" the exit, minimize and maximize options.

I can't do it like this!

root.hide()
#do some stuff
root.show()

Root.hide works but root.show doesn't. No Exception thrown.

:(

Recommended Answers

All 3 Replies

Hide the root window with:
root.withdraw()

Bring the root window back up with:
root.update()
root.deiconify()

Remove root window border and title bar with:
root.overrideredirect(True)

Bring the border and title bar back after 5000 milliseconds:
root.after(5000, root.overrideredirect, False)

Member Avatar for masterofpuppets

Hide the root window with:
root.withdraw()

Remove root window border and title bar with:
root.overrideredirect(1)

Bring the full root window back up with:
root.update()
root.deiconify()

thanks dude, that's really useful, I'll use it as well :)

:)
Thank you, I too understood.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.