Beispiel #1
0
    def __init__(self, parent=None, command=''):
        super(MDIButton, self).__init__(parent)

        self._mdi_cmd = command

        issue_mdi.bindOk(widget=self)
        self.clicked.connect(self.issueMDI)
    def __init__(self, parent=None, filename=''):
        super(SubCallButton, self).__init__(parent)

        self._filename = filename

        issue_mdi.bindOk(widget=self)
        self.clicked.connect(self.callSub)
Beispiel #3
0
    def __init__(self, parent=None):
        super(DROLineEdit, self).__init__(parent)

        self.returnPressed.connect(self.onReturnPressed)
        self.editingFinished.connect(self.onEditingFinished)

        issue_mdi.bindOk(widget=self)
Beispiel #4
0
    def __init__(self, parent=None):
        super(DROLineEdit, self).__init__(parent)

        self.returnPressed.connect(self.onReturnPressed)
        self.editingFinished.connect(self.onEditingFinished)
        self.textEdited.connect(self.setCurrentPos)

        issue_mdi.bindOk(widget=self)

        self.last_commanded_pos = self.status.stat.position[self._anum]
    def __init__(self, parent=None):
        super(LatheToolTouchOff, self).__init__(parent)

        if parent is None:
            return

        self.dm = getPlugin('persistent_data_manager')

        self.stat = STATUS
        self.engine().rootContext().setContextProperty("handler", self)
        url = QUrl.fromLocalFile(os.path.join(WIDGET_PATH, "lathe_tool_touch_off.qml"))
        self.setSource(url)

        self.tool_image = self.dm.getData('tool-touch-off.tool-image-table') or dict()

        self.current_group = ""
        self.current_index = 0

        self.stat.tool_in_spindle.onValueChanged(self.set_active_tool)
        # self.stat.tool_table.onValueChanged(self.update_tools)

        issue_mdi.bindOk(widget=self)