Calculator using Tkinter:

 Introduction:


   

     * Tkinter is commonly bundled with Python, using Tkinter is Python's standard GUI  ( Graphical User Interface ) framework.

     * Python provides the standard library Tkinter for creating the GUI ( Graphical User Interface ) for desktop based applications.

     * It is open source and available under the Python License.

     * Developing desktop based applications with python Tkinter is not a difficult task.

     * An empty Tkinter top-level window can be created by using the following steps.

          I. import everything from the Tkinter module.

         II. Create the Graphical User Interface (GUI) window.

        III. Add the widget like labels, buttons, frames, etc. to the window.

        IV. Start the GUI by Calling the main event loop.



Example:

# import everything from the tkinter module
 from tkinter import *

# Creating a GUI window
 project = Tk()

# Start the GUI
 project.mainloop()



Output for the above code:


  
    



Basic Calculator using Tkinter:

     * Python Program to create a simple GUI Calculator using Tkinter




  
  • The Full Source Code is available on our github site.
                                Click here --  github


***********************************************************************************



Post a Comment

0 Comments