[FEM] make ccx_dat_file object (from ccx_Result) ReadOnly

This commit is contained in:
UR-0
2021-03-02 15:39:28 +01:00
committed by Bernd Hahnebach
parent 226b713ed4
commit eceea653ae

View File

@@ -816,7 +816,10 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject):
file = open(dat_result_file, "r")
obj.Text = file.read()
file.close()
# TODO make the Text of obj read only, or the obj itself
obj.setPropertyStatus("Text", "ReadOnly") # set property editor readonly
if hasattr(obj, "ViewObject"):
obj.ViewObject.ReadOnly = True # set editor view readonly
print(self.analysis)
else:
raise Exception("FEM: No .dat results found at {}!".format(dat_result_file))