[pygtk] PyGtk / Glade - how to get name of textEntry
Dieter Verfaillie
dieterv at optionexplicit.be
Wed Sep 28 00:14:58 WST 2011
On Tue, 27 Sep 2011 17:12:39 +0200, Olaf Devik wrote:
> I have a number of textEntries used to hold setup values. Each of the
> textentries has distinctive names in Glade (Glade 3.6).
>
> I would like to retrieve the name of the textEntry and the content.
> The latter is easy, but I fail to find a property of the textEntry
> which holds the name given to it in the Glade editor.
>
> The name combined with the contents is planned to be used to
> construct a list to be saved in a setup file.
You can get at the name of any widget (provided either libglade
or gtkbuilder does the right thing) by:
gtk.Widget.get_name(widget)
mvg,
Dieter
More information about the pygtk
mailing list