def _loadGroupBox2(self, pmGroupBox): """ load widgets in groupbox3 """ self.segmentListWidget = PM_SelectionListWidget(pmGroupBox, self.win, label="", heightByRows=12) self.segmentListWidget.setObjectName('Segment_list_widget') self.segmentListWidget.setTagInstruction('PICK_ITEM_IN_GLPANE') self.editSegmentPropertiesButton = PM_PushButton( pmGroupBox, label="", text="Edit Properties...") self.editSegmentPropertiesButton.setEnabled(False)
def _loadGroupBox2(self, pmGroupBox): """ load widgets in groupbox2 """ self.strandListWidget = PM_SelectionListWidget(pmGroupBox, self.win, label = "", heightByRows = 9 ) self.strandListWidget.setTagInstruction('PICK_ITEM_IN_GLPANE') self.editStrandPropertiesButton = PM_PushButton( pmGroupBox, label = "", text = "Edit Properties..." ) self.editStrandPropertiesButton.setEnabled(False)
def _loadGroupBox1(self, pmGroupBox): """ load widgets in groupbox1 """ self.segmentListWidget = PM_SelectionListWidget(pmGroupBox, self.win, label="", heightByRows=12) self.segmentListWidget.setFocusPolicy(Qt.StrongFocus) self.segmentListWidget.setFocus() self.setFocusPolicy(Qt.StrongFocus) self.addSegmentsToolButton = PM_ToolButton( pmGroupBox, text = "Add segments to the list", iconPath = "ui/actions/Properties Manager"\ "/AddSegment_To_ResizeSegmentList.png", spanWidth = True ) self.addSegmentsToolButton.setCheckable(True) self.addSegmentsToolButton.setAutoRaise(True) self.removeSegmentsToolButton = PM_ToolButton( pmGroupBox, text = "Remove segments from the list", iconPath = "ui/actions/Properties Manager"\ "/RemoveSegment_From_ResizeSegmentList.png", spanWidth = True ) self.removeSegmentsToolButton.setCheckable(True) self.removeSegmentsToolButton.setAutoRaise(True) #Widgets to include in the widget row. widgetList = [('QLabel', " Add/Remove Segments:", 0), ('QSpacerItem', 5, 5, 1), ('PM_ToolButton', self.addSegmentsToolButton, 2), ('QSpacerItem', 5, 5, 3), ('PM_ToolButton', self.removeSegmentsToolButton, 4), ('QSpacerItem', 5, 5, 5)] widgetRow = PM_WidgetRow(pmGroupBox, title='', widgetList=widgetList, label="", spanWidth=True)
def _loadGroupBox1(self, pmGroupBox): """ Load widgets in groupbox1. """ self.proteinListWidget = PM_SelectionListWidget(pmGroupBox, self.win, label="", heightByRows=6) self.proteinListWidget.setObjectName('Peptide_list_widget') self.proteinListWidget.setTagInstruction('PICK_ITEM_IN_GLPANE') self.editPeptidePropertiesButton = PM_PushButton( pmGroupBox, label="", text="Edit Properties...") self.editPeptidePropertiesButton.setEnabled(False) self.compareProteinsButton = PM_PushButton(pmGroupBox, label="", text="Compare Proteins...") self.compareProteinsButton.setEnabled(False) return