BIM: cleanup imports in bimcommands

This commit is contained in:
marcuspollio
2025-03-23 23:29:43 +01:00
parent 26154f3846
commit 5ecbd20d63
72 changed files with 130 additions and 179 deletions

View File

@@ -22,13 +22,14 @@
"""This is the tutorial of the BIM workbench"""
import os
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")
@@ -91,7 +92,9 @@ class BIM_Tutorial:
QtCore.QTimer.singleShot(1000, self.load)
def load(self, arg=None):
import re, sys, codecs
import codecs
import re
import sys
if sys.version_info.major < 3:
import urllib2
@@ -212,7 +215,7 @@ class BIM_Tutorial:
self.update()
def update(self):
from PySide import QtCore, QtGui
from PySide import QtCore
if not hasattr(self, "form") or not self.form or not hasattr(self, "dock"):
return
@@ -271,7 +274,7 @@ class BIM_Tutorial:
QtCore.QTimer.singleShot(TESTINTERVAL, self.checkGoals)
def checkGoals(self):
from PySide import QtCore, QtGui
from PySide import QtCore
if not hasattr(self, "form"):
return