Posts

Showing posts with the label Tkinter

Basic Calculator using Python GUI (Tkinter) Program

Image
This is a simple graphical user interfaced (GUI) Python application designed using Tkinter package to perform basic arithmetic calculations such as addition, subtraction, multiplication, and division of two numbers through the mouse click event. Copy an icon image ‘favicon.ico’ to the working directory to change the default icon in the title bar of the application. Introduction to Python Tkinter In Python, the tkinter package (“Tcl/Tk interface”) is the standard interface to the Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, as well as on Windows systems. ( Tk itself is not part of Python ; it is maintained at ActiveState .) You can check that tkinter is properly installed on your system by running python -m tkinter from the command line; this should open a window demonstrating a simple Tk interface. For more details, refer to the official site of Python ( python.org ). Source Code # calc.py - a Python calculator from tkinter imp...