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.

Installation

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 setup.py install

Usage

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

# helloworld.py
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
        builder.add_from_file('helloworld.ui')

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

    def run(self):
        self.mainwindow.mainloop()


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

See the examples directory or watch this hello world example on video http://youtu.be/wuzV9P8geDg

Project details


Download files

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

Source Distribution

pygubu-designer-0.16.tar.gz (645.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygubu_designer-0.16-py3-none-any.whl (281.3 kB view details)

Uploaded Python 3

File details

Details for the file pygubu-designer-0.16.tar.gz.

File metadata

  • Download URL: pygubu-designer-0.16.tar.gz
  • Upload date:
  • Size: 645.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pygubu-designer-0.16.tar.gz
Algorithm Hash digest
SHA256 e3cb7afa21e149fb2c1f48fe48c369eefd36c0c762aeea19deeeb579d83e9a4c
MD5 fa1324d18c5d49566cfbc6809237a048
BLAKE2b-256 963ea381a26cc99a361c5fb579573fe201ebc9dcee93a1295916f3588c4d5edb

See more details on using hashes here.

File details

Details for the file pygubu_designer-0.16-py3-none-any.whl.

File metadata

  • Download URL: pygubu_designer-0.16-py3-none-any.whl
  • Upload date:
  • Size: 281.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pygubu_designer-0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 ea9c4cf12f6d0be3e5c66ecfde7c0dfe03b869d60ab3a736957ab8ad68d86f93
MD5 b4956f09d98daa09360b81037d0988f7
BLAKE2b-256 7c6bf42fe0e78e1ddce1f6d2f1f606caf21f5c34819dd94199d342f6dc31c9ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page