@@ -758,8 +758,6 @@ def draw_rubberband(self, x0, y0, x1, y1):
758
758
self .ctx .set_source_rgb (0 , 0 , 0 )
759
759
self .ctx .stroke ()
760
760
761
- tools .ToolRubberband = RubberbandGTK3
762
-
763
761
764
762
class ToolbarGTK3 (ToolContainerBase , Gtk .Box ):
765
763
def __init__ (self , toolmanager ):
@@ -879,15 +877,11 @@ def trigger(self, *args, **kwargs):
879
877
except Exception as e :
880
878
error_msg_gtk (str (e ), parent = self )
881
879
882
- tools .ToolSaveFigure = SaveFigureGTK3
883
-
884
880
885
881
class SetCursorGTK3 (tools .SetCursorBase ):
886
882
def set_cursor (self , cursor ):
887
883
self .figure .canvas .get_property ("window" ).set_cursor (cursord [cursor ])
888
884
889
- tools .ToolSetCursor = SetCursorGTK3
890
-
891
885
892
886
class ConfigureSubplotsGTK3 (tools .ConfigureSubplotsBase , Gtk .Window ):
893
887
def __init__ (self , * args , ** kwargs ):
@@ -942,9 +936,6 @@ def trigger(self, sender, event, data=None):
942
936
self .window .present ()
943
937
944
938
945
- tools .ToolConfigureSubplots = ConfigureSubplotsGTK3
946
-
947
-
948
939
class DialogLineprops :
949
940
"""
950
941
A GUI dialog for controlling lineprops
@@ -1130,6 +1121,12 @@ def error_msg_gtk(msg, parent=None):
1130
1121
dialog .run ()
1131
1122
dialog .destroy ()
1132
1123
1124
+
1125
+ tools .ToolSaveFigure = SaveFigureGTK3
1126
+ tools .ToolConfigureSubplots = ConfigureSubplotsGTK3
1127
+ tools .ToolSetCursor = SetCursorGTK3
1128
+ tools .ToolRubberband = RubberbandGTK3
1129
+
1133
1130
Toolbar = ToolbarGTK3
1134
1131
FigureCanvas = FigureCanvasGTK3
1135
1132
FigureManager = FigureManagerGTK3
0 commit comments