def show_tension_module(self): # folder = self.select_workspace_folder() # folder = str(folder) # if not os.path.exists(folder): # if folder == '': # pass # else: # os.mkdir(folder, 0o755) # # root_path = folder # images_html_folder = ['images_html'] # flag = True # for create_folder in images_html_folder: # if root_path == '': # flag = False # return flag # else: # try: # os.mkdir(os.path.join(root_path, create_folder)) # except OSError: # shutil.rmtree(os.path.join(folder, create_folder)) # os.mkdir(os.path.join(root_path, create_folder)) if self.findChild(QRadioButton,'Tension_Bolted').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(Tension_bolted, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'Tension_Welded').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(Tension_welded, ' ') self.ui2.show() self.ui2.closed.connect(self.show)
def show_moment_connection_cc(self): if self.findChild(QRadioButton,'C2C_Cover_Plate_Bolted').isChecked() : self.hide() self.ui2 = Ui_ModuleWindow(ColumnCoverPlate, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'C2C_Cover_Plate_Welded').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(ColumnCoverPlateWeld, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'C2C_End_Plate_Connection').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(ColumnEndPlate, ' ') self.ui2.show() self.ui2.closed.connect(self.show)
def show_moment_connection(self): if self.findChild(QRadioButton,'B2B_Cover_Plate_Bolted').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(BeamCoverPlate, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'B2B_Cover_Plate_Welded').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(BeamCoverPlateWeld, ' ') self.ui2.show() self.ui2.closed.connect(self.show) # elif self.findChild(QRadioButton,'B2B_End_Plate_Connection').isChecked(): # self.hide() # self.ui2 = Ui_ModuleWindow(BeamBeamEndPlateSplice,' ') # self.ui2.show() # self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton, 'B2B_End_Plate_Splice').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(BeamBeamEndPlateSplice, ' ') self.ui2.show() self.ui2.closed.connect(self.show)
def show_shear_connection(self): if self.findChild(QRadioButton,'Fin_Plate').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(FinPlateConnection, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'Cleat_Angle').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(CleatAngleConnection, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'Seated_Angle').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow( SeatedAngleConnection, ' ') self.ui2.show() self.ui2.closed.connect(self.show) elif self.findChild(QRadioButton,'End_Plate').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(EndPlateConnection, ' ') self.ui2.show() self.ui2.closed.connect(self.show) else: QMessageBox.about(self, "INFO", "Please select appropriate connection")
def show_base_plate(self): if self.findChild(QRadioButton, 'Base_Plate').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(BasePlateConnection, ' ') self.ui2.show() self.ui2.closed.connect(self.show)
def show_moment_connection_bc(self): if self.findChild(QRadioButton,'BC_End_Plate').isChecked(): self.hide() self.ui2 = Ui_ModuleWindow(BeamColumnEndPlate, ' ') self.ui2.show() self.ui2.closed.connect(self.show)