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
Release files for pygubu 0.9.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| pygubu-0.9.6.3.zip | 179.3 kB | Details | |
| pygubu-0.9.6.3.tar.gz | 94.5 kB | Details |
Release files / pygubu-0.9.6.3.zip
| Download URL | pygubu-0.9.6.3.zip |
|---|---|
| Size | 179.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e528b260a1e70dd0157e8398d53e0f9cb8bfecd51684d4905b3938ebaaf6484c
|
|
BLAKE2b-256 checksum How to use checksums |
cfb2b6c3b2eb0c4cb5a95f0b29e68792f33cc9ed67afb0e532667b25aadfab05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pygubu-0.9.6.3.tar.gz
| Download URL | pygubu-0.9.6.3.tar.gz |
|---|---|
| Size | 94.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2964d20a4d4451a427f3e49567fbb95fe400bf74414e7d79eebe8afcf0f7f3c1
|
|
BLAKE2b-256 checksum How to use checksums |
d0f5c5c203bf694575a10068941ad23ddb2b4d5278e6a9b8783ab87f5d1a7636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |