Skip to main content

Easy way to get and set values/properties of Gtk2/Gtk3 widgets.

Project description

GladeBuilder is a simple Gtk Builder for Glade files.

Why is it cool?

Well, all windows have a property called w, which allows you to access all widgets from your window easily.

MyWindow.w.label1.set_label('Foo')

But this isn’t everything. There’s a magic method called show, which allow you to change the widgets content in the window.

MyWindow.w.show({'label1': 'Some Text', 'checkbutton1': True})

A method called get to get all widgets content.

print(MyWindow.w.get())

>>> {'label1': 'Some Text', 'checkbutton1': True}

And also has a method called clear to reset the widget content.

MyWindow.w.clear()

Why this?

Sometimes is painfull to use Gtk. So I added some cool functions to work with widgets. Doens’t support all widgets yet.

Want some examples?

Take a look at /examples.

Want to contribute?

Feel free to fork this repo and send me pull requests.

What I want to do is add more helper functions to use Gtk more easier. For example, create more functions to work with TreeView, Dialogs, Calendar or others in a good way.

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

GladeBuilder-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file GladeBuilder-0.1.0.tar.gz.

File metadata

  • Download URL: GladeBuilder-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for GladeBuilder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d4c2df3484d9738ff1ca9a8f37ad88ecd492ba70a23e220e70ffd39706ead82b
MD5 5fe11c95a7c6c888e675befb618db6f2
BLAKE2b-256 42de053012aaf58db1ed59ab316f784fd4e02275ea7179304510ecfd394a2fa7

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