@@ -862,7 +862,7 @@ def _get_button_with_image(self, name, filepath, icon_name):
862862 btn .add (image )
863863 except Exception as e :
864864 LOG .error (e )
865- message = _ ("could not resolve the image path '{0}' given for button '{1}'" .format (filepath , name ) )
865+ message = _ ("could not resolve the image path '{0}' given for button '{1}'" ) .format (filepath , name )
866866 LOG .error (message )
867867 image .set_from_icon_name ("image-missing" , Gtk .IconSize .DIALOG )
868868 btn .add (image )
@@ -1248,7 +1248,7 @@ def _get_joint_no_or_axis_index(self, button_name):
12481248 LOG .debug ("joint button" )
12491249 joint_btn = True
12501250 else :
1251- LOG .warning (_ ("unknown jog command {0}" .format (button_name ) ))
1251+ LOG .warning (_ ("unknown jog command {0}" ) .format (button_name ))
12521252 return None
12531253
12541254 if not joint_btn :
@@ -1276,7 +1276,7 @@ def _make_jog_button(self):
12761276 btn .set_property ("name" , name )
12771277 btn .connect ("pressed" , self ._on_btn_jog_pressed , name )
12781278 btn .connect ("released" , self ._on_btn_jog_released , name )
1279- btn .set_property ("tooltip-text" , _ ("Press to jog axis {0}" .format (axis )))
1279+ btn .set_property ("tooltip-text" , _ ("Press to jog axis {0}" ) .format (axis . upper ( )))
12801280 # Set name to assign CSS
12811281 self .widgets .vbx_jog_button .set_property ("name" , "jog_buttons" )
12821282 btn .set_size_request (self .jog_btn_size , self .jog_btn_size )
@@ -1296,7 +1296,7 @@ def _make_joints_button(self):
12961296 btn .set_property ("name" , name )
12971297 btn .connect ("pressed" , self ._on_btn_jog_pressed , name )
12981298 btn .connect ("released" , self ._on_btn_jog_released , name )
1299- btn .set_property ("tooltip-text" , _ ("Press to jog joint {0}" .format (joint ) ))
1299+ btn .set_property ("tooltip-text" , _ ("Press to jog joint {0}" ) .format (joint ))
13001300 btn .set_size_request (self .jog_btn_size , self .jog_btn_size )
13011301
13021302 self .joints_button_dic [name ] = btn
@@ -1342,7 +1342,7 @@ def _make_macro_button(self):
13421342 btn .set_halign (Gtk .Align .CENTER )
13431343 btn .set_valign (Gtk .Align .CENTER )
13441344 btn .set_property ("name" ,"macro_{0}" .format (pos ))
1345- btn .set_property ("tooltip-text" , _ ("Press to run macro {0}" .format (name ) ))
1345+ btn .set_property ("tooltip-text" , _ ("Press to run macro {0}" ) .format (name ))
13461346 btn .connect ("clicked" , self ._on_btn_macro_pressed , name )
13471347 btn .position = pos
13481348 btn .show ()
0 commit comments