title: wxPython: Trying to make a docking window, binding parent EVT_ACTIVATE prevents parent resizing
body: <p>I'm trying to make a simple docking frame that will dock to a parent window and follow it around. So far I have the following:</p>
  
  <pre><code>class DockingFrame(wx.Frame):
      def __init__(self, parent):
          wx.Frame.__init__(self, parent, style=wx.CAPTION)
  
          parent.Bind(wx.EVT_MOVE, self.OnParentMove)
          parent.Bind(wx.EVT_ACTIVATE, self.OnParentActivate)
          parent.Bind(wx.EVT_SHOW, self.OnParentShow)
  
      def OnParentMove(self, moveEvent):
          print "Docked frame parent moved"
          pr = positioning.position(
              self.Rect,
              my='right_top', at='left_top', of=self.Parent.Rect)
          self.Move(pr.top_left)
          moveEvent.Skip()
  
      def OnParentActivate(self, event):
          print "Docked frame parent activated"
          self.Raise()
          event.Skip()
  
      def OnParentShow(self, event):
          print "Docked frame parent showed"
          self.Show(event.GetShow())
          event.Skip()
  
  class MainFrame(wx.Frame):
      def __init__(self, title):
          wx.Frame.__init__(self, None, title=title)
  
          self.info_frame = DockingFrame(self)
  
          self.Show(True)
  </code></pre>
  
  <p>This works in that if I move the parent window, the docked window moves with it, and if I click on the parent window, the docked window raises itself. However, it severely interferes with the parent window's functionality. I can't close or re-size the parent window anymore, and I get tons of "Docked frame parent activated" messages whenever I click the parent. It seems I don't understand some fundamental wxPython concept, here. What is going on and how do I fix it?</p>
  
  <p>I've seen that <code>aui</code> seems to support docking, but documentation has been sparse so I haven't attempted it. If someone could supply a minimal working code sample as to how to make a <code>Frame</code> dock to another <code>Frame</code> with <code>aui</code>, I could also take that approach. </p>
  
  <p>Note that I'm also using <code>pygame</code> and <code>twisted</code> in this app, which may or may not be interfering here... </p>