0

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.

:(

Edited by need help!: Mistake in the "remove" section.

4
Contributors
3
Replies
15
Views
7 Years
Discussion Span
Last Post by hayathms
Featured Replies
  • 2

    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) Read More

2

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)

Edited by vegaseat: after()

0

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 :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.