> 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).
> 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. get_widget( "name_of_ widget" ) (self.wTree should be already set, look for it in other source file that are using glade)
It will looks something like : label = self.wTree.
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.learningpyt hon.com/ 2006/05/ 07/creating- a-gui-using- pygtk-and- glade/ and, more generally on http:// www.learningpyt hon.com/ category/ python/ pygtk/
If you have question, ask on #gtg (or on #pygtk).