File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1230,20 +1230,20 @@ def _handleSelectAllAxes(self, evt):
1230
1230
"""Called when the 'select all axes' menu item is selected."""
1231
1231
if len (self ._axisId ) == 0 :
1232
1232
return
1233
- for i in range ( len ( self ._axisId )) :
1234
- self ._menu .Check (self . _axisId [ i ] , True )
1233
+ for ax_id in self ._axisId :
1234
+ self ._menu .Check (ax_id , True )
1235
1235
self ._toolbar .set_active (self .getActiveAxes ())
1236
1236
evt .Skip ()
1237
1237
1238
1238
def _handleInvertAxesSelected (self , evt ):
1239
1239
"""Called when the invert all menu item is selected"""
1240
1240
if len (self ._axisId ) == 0 :
1241
1241
return
1242
- for i in range ( len ( self ._axisId )) :
1243
- if self ._menu .IsChecked (self . _axisId [ i ] ):
1244
- self ._menu .Check (self . _axisId [ i ] , False )
1242
+ for ax_id in self ._axisId :
1243
+ if self ._menu .IsChecked (ax_id ):
1244
+ self ._menu .Check (ax_id , False )
1245
1245
else :
1246
- self ._menu .Check (self . _axisId [ i ] , True )
1246
+ self ._menu .Check (ax_id , True )
1247
1247
self ._toolbar .set_active (self .getActiveAxes ())
1248
1248
evt .Skip ()
1249
1249
You can’t perform that action at this time.
0 commit comments