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 »

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 »

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 »

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 »

Loading