]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/foldpanelbar.py
Fix "warning: operation on 'y' may be undefined".
[wxWidgets.git] / wxPython / wx / lib / foldpanelbar.py
index d6338f32a6a482d61ce1317678b470fcb4686083..4cc6c907e23cc5c6eb6b962f0ea53f93c55d63b2 100644 (file)
@@ -759,9 +759,10 @@ class CaptionBar(wx.Window):
         
         if send_event:
             event = CaptionBarEvent(wxEVT_CAPTIONBAR)
+            event.SetId(self.GetId())
+            event.SetEventObject(self)
             event.SetBar(self)
             self.GetEventHandler().ProcessEvent(event)
-            event.Skip()
         
 
     def OnChar(self, event):
@@ -1074,7 +1075,7 @@ class FoldPanelBar(wx.Panel):
               it is resized.  Very handy for sizer items, buttons and
               text boxes.
 
-            * FPB_ALIGN_LEFT: Alligns left instead of fitting the
+            * FPB_ALIGN_LEFT: Aligns left instead of fitting the
               width of the child window to be added. Use either this
               one or FPB_ALIGN_WIDTH.