update probe basic
This commit is contained in:
@@ -9,8 +9,9 @@ from qtpy.QtWidgets import QWidget, QPushButton
|
||||
from qtpyvcp.actions import machine_actions
|
||||
from qtpyvcp.plugins import getPlugin
|
||||
from qtpyvcp.utilities import logger
|
||||
from widgets.conversational.float_line_edit import FloatLineEdit
|
||||
|
||||
# from widgets.conversational.float_line_edit import VCPLineEdit
|
||||
# from qtpyvcp.widgets.input_widgets import line_edit
|
||||
from qtpyvcp.widgets.input_widgets.line_edit import VCPLineEdit
|
||||
LOG = logger.getLogger(__name__)
|
||||
|
||||
STATUS = getPlugin('status')
|
||||
@@ -35,7 +36,7 @@ class UserTab(QWidget):
|
||||
ui_file = os.path.splitext(os.path.basename(__file__))[0] + ".ui"
|
||||
uic.loadUi(os.path.join(os.path.dirname(__file__), ui_file), self)
|
||||
|
||||
self.position_inputs: list[FloatLineEdit] = self.findChildren(FloatLineEdit)
|
||||
self.position_inputs: list[VCPLineEdit] = self.findChildren(VCPLineEdit)
|
||||
self.move_buttons: list[QPushButton] = self.findChildren(QPushButton)
|
||||
|
||||
self._connect_signals()
|
||||
@@ -56,9 +57,9 @@ class UserTab(QWidget):
|
||||
button.clicked.connect(self._on_move_button_clicked)
|
||||
|
||||
def _format_sender_float_value(self):
|
||||
"""Formats the text of the sending FloatLineEdit to its specified format."""
|
||||
"""Formats the text of the sending VCPLineEdit to its specified format."""
|
||||
sender_widget = self.sender()
|
||||
if not isinstance(sender_widget, FloatLineEdit):
|
||||
if not isinstance(sender_widget, VCPLineEdit):
|
||||
return
|
||||
|
||||
LOG.debug(f"Formatting float for {sender_widget.objectName()}")
|
||||
|
||||
Reference in New Issue
Block a user