Category Archives: Python 3 Tkinter GUI Programs

Python GUI Find Factorial by Recursive Function

Topic: Find Factorial by Recursive Function Python GUI Program   # Python GUI program Find Factorial # of a Number by Recursion # Input a number and show its factorial # using a user defined recursive factorial function # www.EasyCodeBook.com from tkinter import * def inputn(): n= int(entry.get()) # call recursive_factorial function fact= recursive_factorial(n) str1… Read More »

Python GUI Multiplication Table

Topic: Multiplication Table Python GUI Program Python GUI Multiplication Table # Python GUI program Multiplication Table # Input a number and show its multiplication table # from 1 to 10 # www.EasyCodeBook.com from tkinter import * def show_table(): num = int(entry.get()) str1=’ Table of ‘ + str(num) + ‘\n—————–\n’ for i in range(1,11): str1 =… Read More »

Python GUI Area of Triangle

Topic:Python GUI Program Area of Triangle with base and height # Python GUI Program to calculate # Area of a Triangle # When base and height given # www.EasyCodebook.com from tkinter import * def calculate_area(): base = float(entry1.get()) height = float(entry2.get()) area = 1 / 2 * base * height output_label.configure(text = ‘ Area of… Read More »

Python GUI Temperature Conversion Program C To F

Topic: Python GUI Temperature Conversion Program Celsius to Fahrenhiet # Python GUI program Temperature conversion # Celsius to Faherenheit # Input Celsius, Find Fahrenheit # www.EasyCodeBook.com from tkinter import * def convert_temperature(): temp = float(entry.get()) temp = 9/5 * temp+32 output_label.configure(text = ‘ Converted to Fahrenheit: {:.1f} ‘ .format(temp)) main_window = Tk() main_window.title(“www.EasyCodeBook.com”) message_label =… Read More »

Python GUI Program Temperature Conversion Fahrenheit to Celsius

Topic: Python GUI Program Temperature Conversion Fahrenheit to Celsius # Python GUI program Temperature conversion # Faherenheit to Celsius # Input Faherenheit Find Celsius # www.EasyCodeBook.com from tkinter import * def convert_temperature(): temp = float(entry.get()) temp = (temp – 32) * 5/9 output_label.configure(text = ‘ Converted to Celsius: {:.1f} ‘ .format(temp)) main_window = Tk() main_window.title(“www.EasyCodeBook.com”)… Read More »

Python Pounds to Kilogram Converter GUI tkinter Program

Topic: Python 3 Pounds to Kilogram Converter GUI tkinter Program How to Convert Pounds to Kilograms We use pounds (lbs) and kilograms (kg) as units to  measure weight or mass. Both are used in different parts of the world as a weight or mass unit. Therefore, often we need to covert the Pounds to Kilograms… Read More »

Python 3 Four Function Calculator Program tkinter GUI

Topic: Python 3 Four Function Calculator Program tkinter GUI Widgets used in Simple 4 Function Calculator We have used here: Label widgets to display labels for entry widgets for example. We use a label widget for showing result of addition, subtraction, multiplication or division. Last label simply displays ‘www.EasycodeBook.com for Python GUI Tutorials’. Two Entry… Read More »

Python Digital Clock Program using tkinter GUI

Topic: Python Digital Clock Program using tkinter GUI Hardly 10 Lines of code using a label control and after() method to call a function after given miliseconds. This program imports time module We use time module and tkinter. Program Logic / Widgets used in Digital clock Program Label widget: create a label widget named clock… Read More »

Python Quotes Changer Program tkinter GUI

Topic: Python Quotes Changer Program tkinter GUI The Widgets Used in Quotes Changing Program This program uses mainly two widgets: Message widget – to display quotes Spinbox widget – to provide 1 to 5 values to display quote number 1 to 5. when the user selects a new number value from Spinbox widget, the quote… Read More »

Python Spinbox Change Fontsize GUI Program

Topic: Python Spinbox Change Fontsize – Chnage Font Size Spinbox GUI Program Example This Python GUI program using tkinter GUI package, shows the use of Spinbox widget. As the proggram is in execution state, its GUI main window will wait for user input. If the user will change the spinbox value by increasing or decreasing,… Read More »