← Back to team overview

gtg team mailing list archive

Re: [Merge] lp:~kjmikkel/gtg/removeSubtasks into lp:gtg

 

> Again, I agree, but I do not know how to add the warning dialogue and add the
> information to the label - since it is made using glade, it uses static
> information, and the parts of the dialogue do not seem accessible.

This will be a great PyGTK training for you :-)

Changing the text is not hard. First, you have to retrieve the widget from the glade file.
It will looks something like : label = self.wTree.get_widget("name_of_widget") (self.wTree should be already set, look for it in other source file that are using glade)

Then, you just have to use the built-in method of the retrieved widget. Something like label.set_label("my text"). To know the methods of a given object, use the documentation on pygtk.org (or in devhelp).

A great tutorial can be found at http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/ and, more generally on http://www.learningpython.com/category/python/pygtk/

If you have question, ask on #gtg (or on #pygtk).
-- 
https://code.edge.launchpad.net/~kjmikkel/gtg/removeSubtasks/+merge/12495
Your team Gtg developers is subscribed to branch lp:gtg.



References