How to invoke parent's method?
Peter Decker
pydecker at gmail.com
Sun Jan 7 11:39:48 EST 2007
On 7 Jan 2007 01:33:32 -0800, Frank Millman <frank at chagford.com> wrote:
> The essential point is that you save a reference to the frame when you
> create the panel. Then when the button is clicked you can use the
> reference to call the frame's Close method.
Or you could look into Dabo. This is one of those common needs that
has been built into the framework. Any object on a form (a wx.Frame)
can simple reference 'self.Form' to get a reference to the containing
frame. Controls that are contained within other controls (such as
inside panels or notebook pages) can always reference that container
with 'self.Parent'.
--
# p.d.
More information about the Python-list
mailing list