Category Archives: Python Programming Language

chr() function and ord() function in Python

Topic: chr() function and ord() function in Python What is the Use of chr() function and ord() function in Python chr() function in Python The chr() function in Python takes an integer Ascii code and returns the character (actually a string of one character)at that Ascii code value. For example , chr(65) will return ‘A’… Read More: chr() function and ord() function in Python »

Loading

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 Pounds to Kilogram Converter GUI tkinter Program »

Loading

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 3 Four Function Calculator Program tkinter GUI »

Loading

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 Digital Clock Program using tkinter GUI »

Loading

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 Quotes Changer Program tkinter GUI »

Loading

Python 3 tkinter Message Widget Program Examples

Topic: Python 3 tkinter Message Widget Program Examples What is a Message Widget The Message widget is specially designed to show multiline non-editable messages. The message widget will adjust its width. It can wrap text too. It uses a single font to display a multiline message. Why and When to use the Message Widget We… Read More: Python 3 tkinter Message Widget Program Examples »

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 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