VOOZH about

URL: https://www.geeksforgeeks.org/python/python-weight-conversion-gui-using-tkinter/

⇱ Python: Weight Conversion GUI using Tkinter - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python: Weight Conversion GUI using Tkinter

Last Updated : 12 Jul, 2025

Prerequisites: Python GUI – tkinter
Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter outputs the fastest and easiest way to create GUI applications. Creating a GUI using Tkinter is an easy task.
 

Steps to Create a Tkinter: 
 

  • Importing the module – tkinter
  • Create the main window (container)
  • Add any number of widgets to the main window
  • Apply the event Trigger on the widgets. 
     

Below is what the GUI looks like:

👁 Image


Let's create a GUI based weight converter that accepts a kilogram input value and converts that value to grams, pounds, and ounces when the user clicks the Convert button.


Below is the implementation.
 

Output:

Comment