@@ -101,7 +101,7 @@ This is where we import libraries that our widget class needs.
101101###############################
102102# Imports
103103###############################
104- from PyQt5 import QtWidgets # <1>
104+ from PyQt6 import QtWidgets # <1>
105105from qtvcp.widgets.widget_baseclass \
106106 import _HalWidgetBase, _HalSensitiveBase # <2>
107107import hal # <3>
@@ -171,7 +171,7 @@ This LED indicator widget will respond to selectable LinuxCNC controller states.
171171###############################
172172# Imports
173173###############################
174- from PyQt5 .QtCore import pyqtProperty
174+ from PyQt6 .QtCore import pyqtProperty
175175from qtvcp.widgets.led_widget import LED
176176from qtvcp.core import Status
177177
@@ -252,7 +252,7 @@ This is where we import libraries that our widget class needs.
252252###############################
253253# Imports
254254###############################
255- from PyQt5 .QtCore import pyqtProperty # <1>
255+ from PyQt6 .QtCore import pyqtProperty # <1>
256256from qtvcp.widgets.led_widget import LED # <2>
257257from qtvcp.core import Status # <3>
258258----
@@ -457,9 +457,9 @@ It changes:
457457import os
458458import hal
459459
460- from PyQt5 .QtWidgets import QWidget, QToolButton, QMenu, QAction
461- from PyQt5 .QtCore import Qt, QEvent, pyqtProperty, QBasicTimer, pyqtSignal
462- from PyQt5 .QtGui import QIcon
460+ from PyQt6 .QtWidgets import QWidget, QToolButton, QMenu, QAction
461+ from PyQt6 .QtCore import Qt, QEvent, pyqtProperty, QBasicTimer, pyqtSignal
462+ from PyQt6 .QtGui import QIcon
463463
464464from qtvcp.widgets.widget_baseclass import _HalWidgetBase
465465from qtvcp.widgets.dialog_widget import EntryDialog
@@ -659,8 +659,8 @@ Then `qtvcp/plugins/qtvcp_plugin.py` would need to be adjusted to _import_ them.
659659----
660660#!/usr/bin/env python3
661661
662- from PyQt5 import QtCore, QtGui
663- from PyQt5 .QtDesigner import QPyDesignerCustomWidgetPlugin
662+ from PyQt6 import QtCore, QtGui
663+ from PyQt6 .QtDesigner import QPyDesignerCustomWidgetPlugin
664664from qtvcp.widgets.simple_widgets import Lcnc_GridLayout
665665from qtvcp.widgets.qtvcp_icons import Icon
666666ICON = Icon()
@@ -704,8 +704,8 @@ class LcncGridLayoutPlugin(QPyDesignerCustomWidgetPlugin):
704704----
705705#!/usr/bin/env python3
706706
707- from PyQt5 import QtCore, QtGui
708- from PyQt5 .QtDesigner import QPyDesignerCustomWidgetPlugin
707+ from PyQt6 import QtCore, QtGui
708+ from PyQt6 .QtDesigner import QPyDesignerCustomWidgetPlugin
709709from qtvcp.widgets.system_tool_button import SystemToolButton
710710from qtvcp.widgets.qtvcp_icons import Icon
711711ICON = Icon()
@@ -756,8 +756,8 @@ This is the plugin used for _action buttons_.
756756#!/usr/bin/env python3
757757
758758import sip
759- from PyQt5 import QtCore, QtGui, QtWidgets
760- from PyQt5 .QtDesigner import QPyDesignerCustomWidgetPlugin, \
759+ from PyQt6 import QtCore, QtGui, QtWidgets
760+ from PyQt6 .QtDesigner import QPyDesignerCustomWidgetPlugin, \
761761 QPyDesignerTaskMenuExtension, QExtensionFactory, \
762762 QDesignerFormWindowInterface, QPyDesignerMemberSheetExtension
763763from qtvcp.widgets.action_button import ActionButton
0 commit comments