From b0b7835078769682e30a520c53bef4ee06877ea2 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Thu, 3 Jul 2014 22:41:45 -0300 Subject: [PATCH] Update README.md --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c0b05c..24545b5 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ GladeBuilder [![Build Status](https://travis-ci.org/alexandrevicenzi/GladeBuilde GladeBuilder is a simple Gtk Builder for Glade files. -Why is it cool? ------------ +## Why is it cool? Well, all windows have a property called `w`, which allows you to access all widgets from your window easily. @@ -19,9 +18,23 @@ But this isn't everything. There's a magic method called `show`, which allow you 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.