diff --git a/Gui/Command.py b/Gui/Command.py index 6b12fba..959432a 100644 --- a/Gui/Command.py +++ b/Gui/Command.py @@ -187,8 +187,7 @@ class CadQueryExecuteScript: msg = QtGui.QApplication.translate( "cqCodeWidget", "Executed ", - None, - QtGui.QApplication.UnicodeUTF8) + None) FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n") diff --git a/Gui/ExportCQ.py b/Gui/ExportCQ.py index cba98f8..ca73d16 100644 --- a/Gui/ExportCQ.py +++ b/Gui/ExportCQ.py @@ -26,6 +26,5 @@ def save(filename=None): msg = QtGui.QApplication.translate( "cqCodeWidget", "Saved ", - None, - QtGui.QApplication.UnicodeUTF8) + None) FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n") diff --git a/Gui/ImportCQ.py b/Gui/ImportCQ.py index 00625c9..10a53d4 100644 --- a/Gui/ImportCQ.py +++ b/Gui/ImportCQ.py @@ -36,8 +36,7 @@ def open(filename): msg = QtGui.QApplication.translate( "cqCodeWidget", "Please install Python 2.7", - None, - QtGui.QApplication.UnicodeUTF8) + None) FreeCAD.Console.PrintError(msg + "\r\n") # The extra version numbers won't work on Windows @@ -98,8 +97,7 @@ def open(filename): msg = QtGui.QApplication.translate( "cqCodeWidget", "Opened ", - None, - QtGui.QApplication.UnicodeUTF8) + None) FreeCAD.Console.PrintMessage(msg + filename + "\r\n") return diff --git a/InitGui.py b/InitGui.py index 705843d..25425b9 100644 --- a/InitGui.py +++ b/InitGui.py @@ -57,8 +57,7 @@ class CadQueryWorkbench (Workbench): "Author: David Cowden\r\n" "License: Apache-2.0\r\n" "Website: https://github.com/dcowden/cadquery\r\n", - None, - QtGui.QApplication.UnicodeUTF8) + None) FreeCAD.Console.PrintMessage(msg) #Getting the main window will allow us to start setting things up the way we want