Page 48 - Phyton_GUIprogrammingwithTkinter
P. 48

P a ge  | 39


                                                     TUTORIAL 1.4

               1.4 - Add Event Handling into GUI



               Step 1:


               In this example, we’ll create a simple calculator application as shown in Figure 1.4.1 below.




               Step 2:

               The application will contain 4 labels, 3 entry widget and 4 buttons.






























                                                       Figure 1.4.1



               Step 3:



               Each of button created will embed with appropriate function  to  handle event  handling
               assigned  to  them. There will be  add method,  subtraction method, multiply method and
               division method.
   43   44   45   46   47   48   49   50   51   52   53