@@ -515,6 +515,12 @@ def __init__(self, parent, id, figure=None):
515
515
self .Bind (wx .EVT_RIGHT_DOWN , self ._onMouseButton )
516
516
self .Bind (wx .EVT_RIGHT_DCLICK , self ._onMouseButton )
517
517
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 )
518
524
self .Bind (wx .EVT_MOUSEWHEEL , self ._onMouseWheel )
519
525
self .Bind (wx .EVT_MOTION , self ._onMotion )
520
526
self .Bind (wx .EVT_LEAVE_WINDOW , self ._onLeave )
@@ -766,6 +772,8 @@ def _onMouseButton(self, event):
766
772
wx .MOUSE_BTN_LEFT : MouseButton .LEFT ,
767
773
wx .MOUSE_BTN_MIDDLE : MouseButton .MIDDLE ,
768
774
wx .MOUSE_BTN_RIGHT : MouseButton .RIGHT ,
775
+ wx .MOUSE_BTN_AUX1 : MouseButton .FORWARD ,
776
+ wx .MOUSE_BTN_AUX2 : MouseButton .BACK ,
769
777
}
770
778
button = event .GetButton ()
771
779
button = button_map .get (button , button )
0 commit comments