Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Easy Python GUI applications (tkinter wrapper)

Project description


easy_gui is a high-level Python library designed to simplify the process of creating GUI applications by wrapping tkinter. Solving problems is tricky enough... using our solutions should be easy!


  • Installing easy_gui is easy enough. Simply use pip:
pip install easy_gui
  • To create an application with easy_gui, subclass the easy_gui.EasyGUI class and add elements in the init method.

  • Here is the most simple example:

import easy_gui

class GUI(easy_gui.EasyGUI):
    def __init__(self):
        self.add_widget(type='label', text='Example Label')
        self.add_widget(type='button', text='Button', command_func=lambda x: print('TEST'))

application = GUI()
  • Now for a more substantial example that also shows CSS-style layout capabilities. See the script examples/ for this code with additional explanatory comments:
import easy_gui

class GUI(easy_gui.EasyGUI):
    def __init__(self):
        self.title('Animal Diet Generator')

        section = self.add_section('example_section')
        section.configure_grid(['title             title         output',
                                'label1            entry1        output',
                                'label2            entry2        output',
                                'run_button      run_button      output'])
        section.add_widget(type='label', text='Animal Diet Generator!', grid_area='title')
        section.add_widget(type='label', text='Animal:', grid_area='label1')
        self.animal = section.add_widget(type='entry', grid_area='entry1')
        section.add_widget(type='label', text='Food:', grid_area='label2') = section.add_widget(type='entry', grid_area='entry2')
        section.add_widget(type='stdout', grid_area='output')
        section.add_widget(type='button', text='Generate Diet!', grid_area='run_button',

    def diet(self, event):
        print(f'The {self.animal.get()} likes to eat {}!')

application = GUI()

Current Features

  • Quickly and easily build a GUI by subclassing easy_gui.EasyGUI.
  • Create one or more Sections (including nested Sections) to organize GUI elements.
  • Add easy_gui Widget objects to Sections:
    • Button, Label, Entry, CheckBox, DropDown, ListBox, Tree, MatplotlibPlot, ProgressBar, ScrolledText, StdOutBox
  • CSS Grid-style layouts.
  • Easily use multithreading for GUI responsiveness (set "separate_thread=True" when creating a Button Widget)



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for easy-gui, version 0.3.5
Filename, size File type Python version Upload date Hashes
Filename, size easy_gui-0.3.5-py3-none-any.whl (16.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size easy_gui-0.3.5.tar.gz (14.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page