Fem: Run option in examples open and run analysis - fixes #11056
This commit is contained in:
committed by
Chris Hennes
parent
f092531c9a
commit
d0d501a34d
@@ -236,10 +236,10 @@ class FemExamples(QtGui.QWidget):
|
||||
# if done this way the Python commands are printed in Python console
|
||||
FreeCADGui.doCommand("from femexamples.manager import run_example")
|
||||
if solver is not None:
|
||||
FreeCADGui.doCommand("run_example(\"{}\", solver=\"{}\")"
|
||||
FreeCADGui.doCommand("run_example(\"{}\", solver=\"{}\", run_solver=True)"
|
||||
.format(str(example), str(solver)))
|
||||
else:
|
||||
FreeCADGui.doCommand("run_example(\"{}\")".format(str(example)))
|
||||
FreeCADGui.doCommand("run_example(\"{}\", run_solver=True)".format(str(example)))
|
||||
QtGui.QApplication.restoreOverrideCursor()
|
||||
|
||||
def enable_buttons(self):
|
||||
|
||||
Reference in New Issue
Block a user