OpenSCAD fix import of PyQt in translate helper function

This commit is contained in:
Sebastian Hoogen
2012-12-19 23:33:41 +01:00
parent 76ff41ee17
commit ab38bf2aa1
2 changed files with 2 additions and 8 deletions

View File

@@ -61,6 +61,7 @@ from tokrules import tokens
dxfcache = {}
def translate(context,text):
"convenience function for Qt translator"
from PyQt4 import QtGui
return QtGui.QApplication.translate(context, text, None, \
QtGui.QApplication.UnicodeUTF8)