skip to navigation
skip to content

Not Logged In

GladeBuilder 0.1.0

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

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.

 
File Type Py Version Uploaded on Size
GladeBuilder-0.1.0.tar.gz (md5) Source 2014-07-04 8KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 27 downloads in the last week
  • 85 downloads in the last month
  • Author: Alexandre Vicenzi
  • Maintainer: Alexandre Vicenzi
  • Home Page: https://github.com/alexandrevicenzi/GladeBuilder
  • Bug Tracker: https://github.com/alexandrevicenzi/GladeBuilder/issues
  • Download URL: https://github.com/alexandrevicenzi/GladeBuilder/releases/download/v0.1.0/GladeBuilder-0.1.0.tar.gz
  • Keywords: gtk, gtk2, gtk3, widgets
  • License:
    The MIT License (MIT)
    
    Copyright (c) 2013 Alexandre Vicenzi
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
  • Categories
  • Package Index Owner: Alexandre.Vicenzi
  • DOAP record: GladeBuilder-0.1.0.xml