[pygtk] PyGtk / Glade - how to get name of textEntry
francesco at promotux.it
francesco at promotux.it
Tue Sep 27 23:35:51 WST 2011
On 27/09/2011 17:12, 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.
>
> Any ideas?
>
> Regards
>
> Olaf
> _______________________________________________
> pygtk mailing list pygtk a daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
try:
widget_name = gtk.Buildable.get_name(widget)
regard
--
More information about the pygtk
mailing list