-wxEVT_UPDATE_BARGRAPH = wxNewEventType()
-
-def EVT_UPDATE_BARGRAPH(win, func):
- win.Connect(-1, -1, wxEVT_UPDATE_BARGRAPH, func)
-
-
-class UpdateBarEvent(wxPyEvent):
- def __init__(self, barNum, value):
- wxPyEvent.__init__(self)
- self.SetEventType(wxEVT_UPDATE_BARGRAPH)
- self.barNum = barNum
- self.value = value
+# This creates a new Event class and a EVT binder function
+(UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent()