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:
Bernd Hahnebach
2018-05-21 14:32:55 +02:00
committed by wmayer
parent 103371f571
commit 50724bbe50
14 changed files with 26 additions and 10 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -31,7 +31,6 @@ import FreeCAD
import FreeCADGui
import FemGui
# for the panel
from femobjects import _FemMeshGmsh
from PySide import QtCore

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -31,7 +31,6 @@ import FreeCAD
import FreeCADGui
import FemGui
# for the panel
from femtools import ccxtools
from PySide import QtCore