normaliconiczoomed (full screen)or withdrawn experiment with these methods on your own to see how they differ they are also useful to pop up prebuilt dialog windows dynamicallybut are perhaps less practical here example - pp \gui\tour\alarm-withdraw py samebut hide or show entire window on after(timer callbacks from tkinter import import alarm class alarm(alarm alarm)def repeater(self)self bell(if self master state(='normal'self master withdraw(elseself master deiconify(self master lift(self after(self msecsself repeateron every millisecs beep now is window displayedhide entire windowno icon iconify shrinks to an icon else redraw entire window and raise above others reschedule handler if __name__ ='__main__'alarm(mainloop(master default tk root this works the samebut the entire window appears or disappears on beeps--you have to press it when it' shown you could add lots of other effects to the alarmand their timer-based callbacks technique is widely applicable whether your buttons and windows should flash and disappearthoughprobably depends less on tkinter technology than on your userspatience simple animation techniques apart from the direct shape moves of the canvasdraw example we met earlier in this all of the guis presented so far in this part of the book have been fairly static this last section shows you how to change thatby adding simple shape movement animations to the canvas drawing example listed in example - it also demonstrates and expands on the notion of canvas tags--the move operations performed here move all canvas objects associated with tag at once all oval shapes move if you press " ,and all rectangles move if you press " "as mentioned earliercanvas operation methods accept both object ids and tag names but the main goal here is to illustrate simple animation techniques using the time-based tools described earlier in this section there are three basic ways to move objects around canvasby loops that use time sleep to pause for fractions of second between multiple move operationsalong with manual update calls the script movessleepsmoves bit moreand so on time sleep call pauses the caller and so fails to return tkinter tourpart