-        wx.EVT_ENTER_WINDOW(self,self.evEnter)
-        wx.EVT_LEAVE_WINDOW(self,self.evLeave)
+        self.Bind(wx.EVT_ENTER_WINDOW, self.evEnter)
+        self.Bind(wx.EVT_LEAVE_WINDOW, self.evLeave)
         self.SetBackgroundColour(faceClr)
 
     def AddButton(self,bitmap,handler=None):
         id=wx.NewId()
         btn=wx.BitmapButton(self,id,bitmap)
         self.sizer.Add(btn, 1, wx.ALIGN_CENTER|wx.ALL|wx.EXPAND, 2)
         self.SetBackgroundColour(faceClr)
 
     def AddButton(self,bitmap,handler=None):
         id=wx.NewId()
         btn=wx.BitmapButton(self,id,bitmap)
         self.sizer.Add(btn, 1, wx.ALIGN_CENTER|wx.ALL|wx.EXPAND, 2)
 
     def OnBtnClick(self,event):
         id=event.GetEventObject().GetId()
 
     def OnBtnClick(self,event):
         id=event.GetEventObject().GetId()
     def __init__(self,parent,id,bitmap,pos = wx.DefaultPosition,
                  size = wx.DefaultSize, style = wx.BU_AUTODRAW,
                  validator = wx.DefaultValidator, name = "button"):
     def __init__(self,parent,id,bitmap,pos = wx.DefaultPosition,
                  size = wx.DefaultSize, style = wx.BU_AUTODRAW,
                  validator = wx.DefaultValidator, name = "button"):
         wx.BitmapButton.__init__(self, parent, id, bitmap, pos, size, style,
                                  validator, name)
         wx.BitmapButton.__init__(self, parent, id, bitmap, pos, size, style,
                                  validator, name)
         self.popwin=FoldOutWindow(self.parent)
 
     def AddButton(self,bitmap,handler=None):
         self.popwin=FoldOutWindow(self.parent)
 
     def AddButton(self,bitmap,handler=None):