1,105,417 Community Members

Need help! Tkinter hide window then show...

Member Avatar
need help!
Newbie Poster
12 posts since Dec 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
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.

:(

Member Avatar
vegaseat
DaniWeb's Hypocrite
6,984 posts since Oct 2004
Reputation Points: 1,544 [?]
Q&As Helped to Solve: 1,872 [?]
Skill Endorsements: 67 [?]
Moderator
 
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)

Member Avatar
masterofpuppets
Posting Whiz in Training
272 posts since Jul 2009
Reputation Points: 5 [?]
Q&As Helped to Solve: 74 [?]
Skill Endorsements: 0 [?]
 
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 :)

Question Answered as of 4 Years Ago by vegaseat and masterofpuppets
Member Avatar
hayathms
Newbie Poster
1 post since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

:)
Thank you, I too understood.

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: