This below should do the job. However, the splash screen still look like a normal window.
JP Tanguay
#------------------
# hide the main window
wm withdraw .
Splash; # call your proc that create and display a toplevel named .splash
after 5000 {
destroy .splash
wm deiconify .
}
# do your normal UI setup
label .l -text "Main window"
pack .l
#-----------------------
To prevent the splash screen from looking like a "normal window" (in other words, having the title bar, resize handles, etc.), execute the wm overrideredirect command. This tells the window manager to "ignore" the window. (The weird name for the command comes from deep within the bowels of window manager interaction. Don't ask anything more about it. >:O> )
So, if you're creating a splash screen with a top-lvel window name of .splash, you'd simply:
Code:
toplevel .splash
wm overrideredirect .splash 1
- Ken Jones, President
Avia Training and Consulting
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.