FEM: solver task panel, delete not used def
This commit is contained in:
parent
0870fcefcf
commit
a6f6b8de06
|
@ -32,7 +32,6 @@ import FreeCAD
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
if FreeCAD.GuiUp:
|
|
||||||
import FreeCADGui
|
import FreeCADGui
|
||||||
import FemGui
|
import FemGui
|
||||||
from PySide import QtCore, QtGui
|
from PySide import QtCore, QtGui
|
||||||
|
@ -83,6 +82,25 @@ class _TaskPanelFemSolverCalculix:
|
||||||
|
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
|
def getStandardButtons(self):
|
||||||
|
# only show a close button
|
||||||
|
# def accept() in no longer needed, since there is no OK button
|
||||||
|
return int(QtGui.QDialogButtonBox.Close)
|
||||||
|
|
||||||
|
def reject(self):
|
||||||
|
FreeCADGui.ActiveDocument.resetEdit()
|
||||||
|
|
||||||
|
def update(self):
|
||||||
|
'fills the widgets'
|
||||||
|
self.form.le_working_dir.setText(self.solver_object.WorkingDir)
|
||||||
|
if self.solver_object.AnalysisType == 'static':
|
||||||
|
self.form.rb_static_analysis.setChecked(True)
|
||||||
|
elif self.solver_object.AnalysisType == 'frequency':
|
||||||
|
self.form.rb_frequency_analysis.setChecked(True)
|
||||||
|
elif self.solver_object.AnalysisType == 'thermomech':
|
||||||
|
self.form.rb_thermomech_analysis.setChecked(True)
|
||||||
|
return
|
||||||
|
|
||||||
def femConsoleMessage(self, message="", color="#000000"):
|
def femConsoleMessage(self, message="", color="#000000"):
|
||||||
self.fem_console_message = self.fem_console_message + '<font color="#0000FF">{0:4.1f}:</font> <font color="{1}">{2}</font><br>'.\
|
self.fem_console_message = self.fem_console_message + '<font color="#0000FF">{0:4.1f}:</font> <font color="{1}">{2}</font><br>'.\
|
||||||
format(time.time() - self.Start, color, message.encode('utf-8', 'replace'))
|
format(time.time() - self.Start, color, message.encode('utf-8', 'replace'))
|
||||||
|
@ -152,26 +170,6 @@ class _TaskPanelFemSolverCalculix:
|
||||||
QApplication.restoreOverrideCursor()
|
QApplication.restoreOverrideCursor()
|
||||||
self.form.l_time.setText('Time: {0:4.1f}: '.format(time.time() - self.Start))
|
self.form.l_time.setText('Time: {0:4.1f}: '.format(time.time() - self.Start))
|
||||||
|
|
||||||
def getStandardButtons(self):
|
|
||||||
return int(QtGui.QDialogButtonBox.Close)
|
|
||||||
|
|
||||||
def update(self):
|
|
||||||
'fills the widgets'
|
|
||||||
self.form.le_working_dir.setText(self.solver_object.WorkingDir)
|
|
||||||
if self.solver_object.AnalysisType == 'static':
|
|
||||||
self.form.rb_static_analysis.setChecked(True)
|
|
||||||
elif self.solver_object.AnalysisType == 'frequency':
|
|
||||||
self.form.rb_frequency_analysis.setChecked(True)
|
|
||||||
elif self.solver_object.AnalysisType == 'thermomech':
|
|
||||||
self.form.rb_thermomech_analysis.setChecked(True)
|
|
||||||
return
|
|
||||||
|
|
||||||
def accept(self):
|
|
||||||
FreeCADGui.ActiveDocument.resetEdit()
|
|
||||||
|
|
||||||
def reject(self):
|
|
||||||
FreeCADGui.ActiveDocument.resetEdit()
|
|
||||||
|
|
||||||
def choose_working_dir(self):
|
def choose_working_dir(self):
|
||||||
current_wd = self.setup_working_dir()
|
current_wd = self.setup_working_dir()
|
||||||
wd = QtGui.QFileDialog.getExistingDirectory(None, 'Choose CalculiX working directory',
|
wd = QtGui.QFileDialog.getExistingDirectory(None, 'Choose CalculiX working directory',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user