- # Once the intctrl library is updated, this should be too.
- intctrl.EVT_INT(self, self.min.GetId(), self.SetTargetMinMax)
- intctrl.EVT_INT(self, self.max.GetId(), self.SetTargetMinMax)
- intctrl.EVT_INT(self, self.target_ctl.GetId(), self.OnTargetChange)
+ self.Bind(wx.lib.intctrl.EVT_INT, self.SetTargetMinMax, self.min)
+ self.Bind(wx.lib.intctrl.EVT_INT, self.SetTargetMinMax, self.max)
+ self.Bind(wx.lib.intctrl.EVT_INT, self.OnTargetChange, self.target_ctl)