update probe basic
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, "/usr/lib/python3/dist-packages/probe_basic")
|
||||
from probe_basic_rc import *
|
||||
import linuxcnc
|
||||
|
||||
from qtpy import uic
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtWidgets import QWidget
|
||||
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__)
|
||||
|
||||
@@ -16,8 +19,13 @@ 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"
|
||||
uic.loadUi(os.path.join(os.path.dirname(__file__), ui_file), self)
|
||||
ui_path = os.path.join(os.path.dirname(__file__), ui_file)
|
||||
self.ui = _load_ui(ui_path, self)
|
||||
Reference in New Issue
Block a user