Monthly Archives: March 2020

Python 3 Radio Buttons GUI Program

Topic: Python 3  Radio Buttons GUI Program using  tkinter from tkinter import * def selection(): choice = “You selected the option ” + str(radio.get()) if radio.get()== 1: choice = choice + ” – Python” elif radio.get()== 2: choice = choice + ” – Java” elif radio.get()== 3: choice = choice + ” – C++” label.config(text… Read More: Python 3 Radio Buttons GUI Program »

Loading

Adding Menus to Python 3 tkinter GUI Programs

Topic: Adding Menus to Python 3 tkinter GUI Programs Abou the GUI Program with Menu This is a Python 3 GUI program to show the use of Menu in GUI Python programs. It is written using tkinter module. It shows a menu bar with two menus. File menu has options of New, OPen, Save and… Read More: Adding Menus to Python 3 tkinter GUI Programs »

Loading

Python Lists Program To Sort N Numbers List

Topic: Python Lists Program To Sort N Numbers List # Python program to sort n numbers # List and print unsorted and sorted List # using sort() method def main(): # create empty list so that user will input at runtime number_list = [] # ask the user to input n / how many numbers?… Read More: Python Lists Program To Sort N Numbers List »

Loading

Python Program Find Minimum Number From List

Topic: Python Program Find Minimum Number From List using prefefined min() function. # Python program to find smallest # number in a list def main(): # create empty list so that user will input at runtime number_list = [] # ask the user to input n / how many numbers? num = int(input(“How many numbers… Read More: Python Program Find Minimum Number From List »

Loading

Python 3 GUI Program Add Two Numbers

Topic: Python 3 GUI Program Add Two Numbers This Python 3 GUI program uses tkinter module to create 4 label widgets, two entry widgets and one button. The user will enter two numbers in the two entry widgets. The result of addition will be shown in result label when the button is clicked by the… Read More: Python 3 GUI Program Add Two Numbers »

Loading

Python Find Area of Circle using User Defined Function

Topic: Python Find Area of Circle using User Defined Function The area of a circle is given by the formula: area = PI x R2 where PI is the popular math constant = 3.14159 and R is the radius of the circle. We will use the math module in this Python program. Import math module… Read More: Python Find Area of Circle using User Defined Function »

Loading

Explain Python grid Geometry Manager with Example Code

Topic: Explain Python grid Geometry Manager with Example Code The Python Grid Geometry Manager – GUI tkinter Module The Grid geometry manager manages the widgets in the cells of a two dimentional table. The grid() method is used to place the widgets in cells of the grid in respective rows and columns. label1.grid(row = 0,… Read More: Explain Python grid Geometry Manager with Example Code »

Loading

Python 3 GUI Miles to Kilometers Converter tkinter Program

Task: Python 3 GUI Miles to Kilometers Converter tkinter Program # Write a Python GUI program # using tkinter module # to input Miles in Entry widget # that is in text box and convert # to Kilometers Km on button click. import tkinter as tk def main(): window= tk.Tk() window.title(“Miles to Kilometers Converter”) window.geometry(“375×200”)… Read More: Python 3 GUI Miles to Kilometers Converter tkinter Program »

Loading