Unicode fixes for Python3

This commit is contained in:
cclauss
2019-01-04 12:18:25 +01:00
committed by wmayer
parent 0453ee71e6
commit e3545c8c06
12 changed files with 108 additions and 101 deletions

View File

@@ -21,6 +21,8 @@
#* *
#***************************************************************************
import six
import FreeCAD as App
import FreeCADGui as Gui
@@ -221,9 +223,9 @@ class TaskPanel:
form.xLabel = self.widget(QtGui.QLineEdit, "titleX")
form.yLabel = self.widget(QtGui.QLineEdit, "titleY")
Plot.title(unicode(form.title.text()))
Plot.xlabel(unicode(form.xLabel.text()))
Plot.ylabel(unicode(form.yLabel.text()))
Plot.title(six.text_type(form.title.text()))
Plot.xlabel(six.text_type(form.xLabel.text()))
Plot.ylabel(six.text_type(form.yLabel.text()))
plt.update()
def onFontSizes(self, value):