Quick Question regarding Frames

Chris S seywaresolutions at gmail.com
Tue Mar 28 15:30:46 EST 2006


HI Dave,
Thanks for the reply.
I am a bit confused by this piece of code:
  class FrameB(wx.Frame):
      def __init__(self, frameA, ...):
          self.frameA = frameA

What is frameA in the __init__ definition?
Do I need to create something called frameA in order to pass it to that
__init__ function?

Presently I would call FrameB as
        w2 = FrameB(None, -1,"")
        w2.Show()

Where would I put the reference to frameA?

Thanks.

Chris




More information about the Python-list mailing list