Re: [pygtk] Finding out a widget's parent



On Wed, 8 Aug 2001, Christian Robottom Reis wrote:

On Wed, 8 Aug 2001, David Everly wrote:

selectionWin.__getattr__('file_list')['parent'].hide()

Damn. foo['parent']. and what's worse, clise['selection_mode'].

These correspond to the get_property() and set_property() methods in
pygtk2.  It is using the obscure mapping behaviour because that is what
was used in Tkinter for properties.  Unfortunately, people don't often
find this :(

There should probably be a widget.parent attribute in the stable version
of pygtk (there is one for pygtk2).

James.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]