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
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 Distribution
Built Distribution
Hashes for pygubu_designer-0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c375f9915a5db3d2a9d6500208b0d024bb05a7379d8efafffe58da851205ede |
|
MD5 | dd77e1dc3de027fe5d3a8bd49348abc4 |
|
BLAKE2b-256 | bc21422ecfbd709d748e35865b24f4c573a188f79fbb5bc181700fa05b16aef2 |