FEM: some Python constraint VP, add import of FemGui to get the icon in TreeView when there is no analysis and Fem is not loaded
This commit is contained in:
@@ -29,6 +29,9 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
from pivy import coin
|
||||
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
|
||||
class _ViewProviderFemConstraintSelfWeight:
|
||||
|
||||
@@ -30,7 +30,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
from femobjects import _FemElementFluid1D
|
||||
|
||||
@@ -29,7 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
from femobjects import _FemElementGeometry1D
|
||||
|
||||
@@ -29,7 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
from PySide import QtCore
|
||||
|
||||
@@ -29,6 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
from PySide import QtCore
|
||||
|
||||
@@ -29,7 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
from FreeCAD import Units
|
||||
|
||||
@@ -29,6 +29,9 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
from pivy import coin
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
from PySide import QtCore
|
||||
|
||||
@@ -31,7 +31,6 @@ import FreeCAD
|
||||
import FreeCADGui
|
||||
import FemGui
|
||||
|
||||
|
||||
# for the panel
|
||||
from femobjects import _FemMeshGmsh
|
||||
from PySide import QtCore
|
||||
|
||||
@@ -29,7 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
import femmesh.meshtools as FemMeshTools
|
||||
|
||||
@@ -29,7 +29,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
import femmesh.meshtools as FemMeshTools
|
||||
|
||||
@@ -30,7 +30,8 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
|
||||
import FemGui # needed to display the icons in TreeView
|
||||
False if False else FemGui.__name__ # dummy usage of FemGui for flake8, just returns 'FemGui'
|
||||
|
||||
# for the panel
|
||||
import FemGui
|
||||
|
||||
@@ -31,7 +31,6 @@ import FreeCAD
|
||||
import FreeCADGui
|
||||
import FemGui
|
||||
|
||||
|
||||
# for the panel
|
||||
from femtools import ccxtools
|
||||
from PySide import QtCore
|
||||
|
||||
Reference in New Issue
Block a user