def check_plate_width(self, widget):
loc = self.ui.comboConnLoc.currentText()
plate_width = widget.text()
plate_width = float(plate_width)
if plate_width == 0:
self.ui.btn_Design.setDisabled(False)
else:
dict_column_data = self.fetch_column_param()
col_D = float(dict_column_data['D'])
col_T = float(dict_column_data['T'])
col_R1 = float(dict_column_data['R1'])
clear_depth = 0.0
if loc == "Column web-Beam web" or loc == "Column flange-Beam web":
clear_depth = col_D - 2 * (col_T + col_R1 + 5)
if clear_depth < plate_width:
self.ui.btn_Design.setDisabled(True)
QMessageBox.about(self, 'Information', "Height of the end plate should be less than %s mm" % (int(clear_depth)))
else:
self.ui.btn_Design.setDisabled(False)
评论列表
文章目录