def setup_gui(self): """ """ self.glWidget = GLWidget(parent=self.gridWidget_4, width=1508, height=713, bgcolor=(.5, .5, 0.9), enable_light=False) self.gridLayout_4.addWidget(self.glWidget) # adding the editing items to ROI table # double spinbox for x,y and z coordinates self.dspbxcoord = QtGui.QDoubleSpinBox() self.tblROI.setCellWidget(3, 1, self.dspbxcoord) self.dspbycoord = QtGui.QDoubleSpinBox() self.tblROI.setCellWidget(4, 1, self.dspbycoord) self.dspbzcoord = QtGui.QDoubleSpinBox() self.tblROI.setCellWidget(5, 1, self.dspbzcoord) self.spbrad = QtGui.QSpinBox() self.tblROI.setCellWidget(6, 1, self.spbrad) # define method ROI self.roimethod = 1 #tractome inside # color button self.colorlist = [ QtGui.QColor('red'), QtGui.QColor('blue'), QtGui.QColor('green'), QtGui.QColor('yellow'), QtGui.QColor('cyan'), QtGui.QColor('black') ] self.btncolor = QtGui.QPushButton() self.tblROI.setCellWidget(2, 1, self.btncolor) self.btncolor.setAutoFillBackground(True) # connect button with QColorDialog self.connect(self.btncolor, QtCore.SIGNAL("clicked()"), self.on_btncolor_clicked) # visibility checkbox self.chkbvis = QtGui.QCheckBox() self.chkbvis.setCheckState(QtCore.Qt.Checked) self.connect(self.chkbvis, QtCore.SIGNAL("stateChanged(int)"), self.on_chkbvis_stateChanged) self.tblROI.setCellWidget(1, 1, self.chkbvis) # self.show_hide_rows(True) # creating the main Scene self.tractome = Tractome() self.add_scene(self.tractome.scene)