31 lines
872 B
Python
31 lines
872 B
Python
import os
|
|
import sys
|
|
sys.path.insert(0, "/usr/lib/python3/dist-packages/probe_basic")
|
|
from probe_basic_rc import *
|
|
import linuxcnc
|
|
|
|
from PySide6.QtCore import Qt
|
|
from PySide6.QtWidgets import QWidget
|
|
|
|
from qtpyvcp.plugins import getPlugin
|
|
from qtpyvcp.utilities import logger
|
|
from qtpyvcp.utilities.runtime_ui_loader import load_ui as load_runtime_ui
|
|
|
|
LOG = logger.getLogger(__name__)
|
|
|
|
STATUS = getPlugin('status')
|
|
TOOL_TABLE = getPlugin('tooltable')
|
|
|
|
INI_FILE = linuxcnc.ini(os.getenv('INI_FILE_NAME'))
|
|
|
|
|
|
def _load_ui(ui_path, parent):
|
|
return load_runtime_ui(ui_path, parent)
|
|
|
|
|
|
class UserDRO(QWidget):
|
|
def __init__(self, parent=None):
|
|
super(UserDRO, self).__init__(parent)
|
|
ui_file = os.path.splitext(os.path.basename(__file__))[0] + ".ui"
|
|
ui_path = os.path.join(os.path.dirname(__file__), ui_file)
|
|
self.ui = _load_ui(ui_path, self) |