Draft: trying different method to solve encoding problem
This commit is contained in:
@@ -647,7 +647,7 @@ class DraftToolBar:
|
||||
self.autoGroupButton = self._pushbutton("autoGroup",self.bottomtray,icon="Draft_AutoGroup_off",hide=False,width=120)
|
||||
self.autoGroupButton.setText("None")
|
||||
|
||||
self.wplabel.setToolTip(translate("draft", "Current working plane:")+self.wplabel.text())
|
||||
self.wplabel.setToolTip(translate("draft", "Current working plane:",utf8_decode=True)+self.wplabel.text())
|
||||
self.constrButton.setToolTip(translate("draft", "Toggle construction mode"))
|
||||
self.colorButton.setToolTip(translate("draft", "Curreont line color"))
|
||||
self.facecolorButton.setToolTip(translate("draft", "Current face color"))
|
||||
|
||||
@@ -435,7 +435,7 @@ class SelectPlane(DraftTool):
|
||||
elif type(arg).__name__ == 'Vector':
|
||||
plv = 'd('+str(arg.x)+','+str(arg.y)+','+str(arg.z)+')'
|
||||
self.ui.wplabel.setText(plv+suffix)
|
||||
self.ui.wplabel.setToolTip(translate("draft", "Current working plane:").decode("utf8")+self.ui.wplabel.text())
|
||||
self.ui.wplabel.setToolTip(translate("draft", "Current working plane:",utf8_decode=True)+self.ui.wplabel.text())
|
||||
FreeCADGui.doCommandGui("FreeCADGui.Snapper.setGrid()")
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user