예제 #1
0
    def initUI(self, _heigt, _width, _left, _top):

        layout = QGridLayout()
        self.layout = layout
        self.setLayout(layout)
        
        self.position = 0
                
        for alg in MorphologyAlg._operations.keys():
            radiobutton = QRadioButton(alg)
            
            if(alg==self.Morphology.OperationName):
                radiobutton.setChecked(True)      

            radiobutton.algValue = alg
            radiobutton.toggled.connect(self.on_radio_button_toggled)
            self.addWidget(radiobutton,layout)
                    
        
        qbSettings = QPushButton("Settings",self)
        qbSettings.clicked.connect(self.settingsClicked)
        self.switchButtonEnabled(qbSettings)
        
        self.addWidget(qbSettings,layout)
        
        self.setGeometry(_left, _top, _heigt, _width)
        self.setWindowTitle('Binary Algorithm selection')
        self.show()
예제 #2
0
    def initUI(self, _heigt, _width, _left, _top):
        
        layout = QGridLayout()
        self.setLayout(layout)
        
        position = 0
        
        for alg in BinaryAlg._operations.keys():
            radiobutton = QRadioButton(alg)
            
            if(alg==self.binaryData.OperationName):
                radiobutton.setChecked(True)      

            radiobutton.algValue = alg
            radiobutton.toggled.connect(self.on_radio_button_toggled)
            layout.addWidget(radiobutton, position, 0)
            
            position+=1            
        
        
        self.setGeometry(_left, _top, _heigt, _width)
        self.setWindowTitle('Binary Algorithm selection')
        self.show()