BIM: Fix BIM tutorial issues

UI file is now in a resources file.
Translate function was not defined.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=87830
This commit is contained in:
Roy-043
2024-05-22 15:58:58 +02:00
committed by Yorik van Havre
parent 859a228723
commit e343668d80

View File

@@ -28,6 +28,7 @@ import FreeCAD
import FreeCADGui
QT_TRANSLATE_NOOP = FreeCAD.Qt.QT_TRANSLATE_NOOP
translate = FreeCAD.Qt.translate
PARAMS = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/BIM")
@@ -58,9 +59,7 @@ class BIM_Tutorial:
if not self.dock:
# set the tutorial dialog up
self.form = FreeCADGui.PySideUic.loadUi(
os.path.join(os.path.dirname(__file__), "dialogTutorial.ui")
)
self.form = FreeCADGui.PySideUic.loadUi(":/ui/dialogTutorial.ui")
self.form.setObjectName("BIMTutorial")
self.form.progressBar.setValue(0)
self.form.labelGoal1.setText("")