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.10.tar.gz (123.3 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.10-py3-none-any.whl (169.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygubu-designer-0.10.tar.gz
  • Upload date:
  • Size: 123.3 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.2

File hashes

Hashes for pygubu-designer-0.10.tar.gz
Algorithm Hash digest
SHA256 632f7eb3a26e6e65b5879c93019a7c9187cfa8275fedf149f73ca660ba1ffe96
MD5 8c69cda6d108c77fc9d0a7fc8eea1d23
BLAKE2b-256 133950f178a87d75ba27df585a4015aad2345cab99ee64f2b0d4c910ba19dc79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygubu_designer-0.10-py3-none-any.whl
  • Upload date:
  • Size: 169.4 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.2

File hashes

Hashes for pygubu_designer-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2fd3faaeabc69480283b6fb09860836ac39bc666f902233221b5f57475fdc190
MD5 d7a2f81cd4af65eb51bf901b9c9defb7
BLAKE2b-256 fc29d09efded634e9c2579c4ac8249498593a99dda0d08d359d1057727908b9f

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