Skip to main content

A tkinter GUI builder.

Project description

Pygubu is a RAD tool to enable quick & easy development of user interfaces for the python tkinter module.

The user interfaces designed are saved as XML, and by using the pygubu builder these can be loaded by applications dynamically as needed. Pygubu is inspired by Glade.

IMPORTANT. Since version 0.10 pygubu was splited in two projects, the core library (this package) and the gui designer (pygubu-designer).


Pygubu requires python >= 2.7 (Tested only in python 2.7.3 and 3.2.3 with tk8.5)

Download and extract the tarball. Open a console in the extraction path and execute:

python install


Create an UI definition using pygubu-designer and save it to a file. Then, create your aplication script as shown below. Note that ‘mainwindow’ is the name of your Toplevel widget.

import tkinter as tk
import pygubu

class HelloWorldApp:

    def __init__(self):

        #1: Create a builder
        self.builder = builder = pygubu.Builder()

        #2: Load an ui file

        #3: Create the mainwindow
        self.mainwindow = builder.get_object('mainwindow')

    def run(self):

if __name__ == '__main__':
    app = HelloWorldApp()

See the examples directory or watch this hello world example on video

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 pygubu, version 0.13
Filename, size File type Python version Upload date Hashes
Filename, size pygubu-0.13-py3-none-any.whl (63.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pygubu-0.13.tar.gz (48.3 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