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:

#test.py
import tkinter as tk
import pygubu

class Application:
    def __init__(self, master):

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

        #2: Load an ui file
        builder.add_from_file('test.ui')

        #3: Create the widget using a master as parent
        self.mainwindow = builder.get_object('mainwindow', master)

if __name__ == '__main__':
    root = tk.Tk()
    app = Application(root)
    root.mainloop()

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

pygubu-0.9.6.5.zip (179.8 kB view details)

Uploaded Source

pygubu-0.9.6.5.tar.gz (95.0 kB view details)

Uploaded Source

File details

Details for the file pygubu-0.9.6.5.zip.

File metadata

  • Download URL: pygubu-0.9.6.5.zip
  • Upload date:
  • Size: 179.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygubu-0.9.6.5.zip
Algorithm Hash digest
SHA256 5f3d3b225d59eaab8322fcb9667ffd712a3296b1c8d2c71d468d54b25ef797cb
MD5 bdbc2bf0ae63f7875add54a77259d0d4
BLAKE2b-256 918e9f8700e5ce8a658b234bd4fbc13a34e96c6a344a87b16cceeaf1f77bb295

See more details on using hashes here.

File details

Details for the file pygubu-0.9.6.5.tar.gz.

File metadata

  • Download URL: pygubu-0.9.6.5.tar.gz
  • Upload date:
  • Size: 95.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygubu-0.9.6.5.tar.gz
Algorithm Hash digest
SHA256 2cb6685796cd1feb6ee09a2a0d851659918b78a5ed66b8fca4a65860ae4fd237
MD5 f0862be9fa394d21b526cbd502e3fd86
BLAKE2b-256 c0db1011ad62aba48cee46c22d92c784ac27f995f876e7fb626d3c421098bede

See more details on using hashes here.

Supported by

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