@@ -515,6 +515,12 @@ def __init__(self, parent, id, figure=None):
515515 self .Bind (wx .EVT_RIGHT_DOWN , self ._onMouseButton )
516516 self .Bind (wx .EVT_RIGHT_DCLICK , self ._onMouseButton )
517517 self .Bind (wx .EVT_RIGHT_UP , self ._onMouseButton )
518+ self .Bind (wx .EVT_MOUSE_AUX1_DOWN , self ._onMouseButton )
519+ self .Bind (wx .EVT_MOUSE_AUX1_UP , self ._onMouseButton )
520+ self .Bind (wx .EVT_MOUSE_AUX2_DOWN , self ._onMouseButton )
521+ self .Bind (wx .EVT_MOUSE_AUX2_UP , self ._onMouseButton )
522+ self .Bind (wx .EVT_MOUSE_AUX1_DCLICK , self ._onMouseButton )
523+ self .Bind (wx .EVT_MOUSE_AUX2_DCLICK , self ._onMouseButton )
518524 self .Bind (wx .EVT_MOUSEWHEEL , self ._onMouseWheel )
519525 self .Bind (wx .EVT_MOTION , self ._onMotion )
520526 self .Bind (wx .EVT_LEAVE_WINDOW , self ._onLeave )
@@ -766,6 +772,8 @@ def _onMouseButton(self, event):
766772 wx .MOUSE_BTN_LEFT : MouseButton .LEFT ,
767773 wx .MOUSE_BTN_MIDDLE : MouseButton .MIDDLE ,
768774 wx .MOUSE_BTN_RIGHT : MouseButton .RIGHT ,
775+ wx .MOUSE_BTN_AUX1 : MouseButton .BACK ,
776+ wx .MOUSE_BTN_AUX2 : MouseButton .FORWARD ,
769777 }
770778 button = event .GetButton ()
771779 button = button_map .get (button , button )
0 commit comments