示例#1
0
class PropertiesWidget(QtGui.QWidget):
    def __init__(self, tool):
        super(PropertiesWidget, self).__init__()
        self._ui = Ui_PropertiesWidget()
        self._ui.setupUi(self)

        self._ui._doubleSpinBoxPointSize.setValue(
            DEFAULT_SEGMENTATION_POINT_SIZE)
        self._ui._doubleSpinBoxStepSize.setValue(DEFAULT_PUSH_PULL_STEP_SIZE)

        self._tool = tool

        self._makeConnections()

    def _makeConnections(self):
        self._ui._doubleSpinBoxPointSize.valueChanged.connect(
            self._tool.pointSizeChanged)
        self._ui._doubleSpinBoxStepSize.valueChanged.connect(
            self._tool.stepSizeChanged)
        self._ui._checkBoxStreamingCreate.stateChanged.connect(
            self._tool.streamingCreateChanged)
        self._ui._pushButtonDelete.clicked.connect(self._tool.deleteClicked)
        self._ui._pushButtonPullUp.clicked.connect(self._tool.pullUpClicked)
        self._ui._pushButtonPushDown.clicked.connect(
            self._tool.pushDownClicked)
示例#2
0
    def __init__(self, tool):
        super(PropertiesWidget, self).__init__()
        self._ui = Ui_PropertiesWidget()
        self._ui.setupUi(self)

        self._ui._doubleSpinBoxPointSize.setValue(
            DEFAULT_SEGMENTATION_POINT_SIZE)
        self._ui._doubleSpinBoxStepSize.setValue(DEFAULT_PUSH_PULL_STEP_SIZE)

        self._tool = tool

        self._makeConnections()
示例#3
0
    def __init__(self, tool):
        super(PropertiesWidget, self).__init__()
        self._ui = Ui_PropertiesWidget()
        self._ui.setupUi(self)

        self._ui._doubleSpinBoxPointSize.setValue(DEFAULT_SEGMENTATION_POINT_SIZE)
        self._ui._doubleSpinBoxStepSize.setValue(DEFAULT_PUSH_PULL_STEP_SIZE)

        self._tool = tool

        self._makeConnections()
示例#4
0
class PropertiesWidget(QtGui.QWidget):

    def __init__(self, tool):
        super(PropertiesWidget, self).__init__()
        self._ui = Ui_PropertiesWidget()
        self._ui.setupUi(self)

        self._ui._doubleSpinBoxPointSize.setValue(DEFAULT_SEGMENTATION_POINT_SIZE)
        self._ui._doubleSpinBoxStepSize.setValue(DEFAULT_PUSH_PULL_STEP_SIZE)

        self._tool = tool

        self._makeConnections()

    def _makeConnections(self):
        self._ui._doubleSpinBoxPointSize.valueChanged.connect(self._tool.pointSizeChanged)
        self._ui._doubleSpinBoxStepSize.valueChanged.connect(self._tool.stepSizeChanged)
        self._ui._checkBoxStreamingCreate.stateChanged.connect(self._tool.streamingCreateChanged)
        self._ui._pushButtonDelete.clicked.connect(self._tool.deleteClicked)
        self._ui._pushButtonPullUp.clicked.connect(self._tool.pullUpClicked)
        self._ui._pushButtonPushDown.clicked.connect(self._tool.pushDownClicked)