Saturday, July 23, 2022

Lesson 9

 The messagebox widget lends itself to much variation. First, though, I have

given a fixed size to my window by calling geometry(). The latter function is not called

on Tk() - which is itself a method - but on the window or root itself. the practice

of assigning Tk() to the window is what makes the tkinter widgets available!!

Follows examples of the three built-in types: information, warning and error. In the last, 

what started out as an information window became a warning, because I asked for

a change to icon...




                                  

                                                                                                             

                                                                                


                                                                           



*     *     *

There is also a choice of question messageboxes. The code that catches the answer is a boolean. 

Clicking 'yes' makes the assertion TRUE.

                                                                        

                                                                           



                                                                              




                                                                              

No comments: