FEM: set solver type property to read only the hard way

This commit is contained in:
Bernd Hahnebach 2016-01-05 17:42:24 +01:00 committed by Yorik van Havre
parent feb8c0685e
commit 0ba0f7a55d

View File

@ -37,9 +37,8 @@ class _FemSolverCalculix():
self.Object = obj # keep a ref to the DocObj for nonGui usage
obj.Proxy = self # link between App::DocumentObject to this object
obj.addProperty("App::PropertyString", "SolverType", "Base", "Type of the solver")
obj.addProperty("App::PropertyString", "SolverType", "Base", "Type of the solver", 1) # the 1 set the property to ReadOnly
obj.SolverType = str(self.Type)
obj.setEditorMode("SolverType", 1)
fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem")