From db3e5da17c3fc17a7ed4d9f16f18f0613c3d6082 Mon Sep 17 00:00:00 2001 From: jupfi Date: Sat, 8 Jul 2023 11:06:19 +0200 Subject: [PATCH] Changed to PyQt6. --- src/nqrduck_spectrometer_limenqr/view.py | 2 +- src/nqrduck_spectrometer_limenqr/widget.py | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/nqrduck_spectrometer_limenqr/view.py b/src/nqrduck_spectrometer_limenqr/view.py index bb7237e..e0af74e 100644 --- a/src/nqrduck_spectrometer_limenqr/view.py +++ b/src/nqrduck_spectrometer_limenqr/view.py @@ -1,4 +1,4 @@ -from PyQt5.QtWidgets import QWidget +from PyQt6.QtWidgets import QWidget from nqrduck.module.module_view import ModuleView from .widget import Ui_Form diff --git a/src/nqrduck_spectrometer_limenqr/widget.py b/src/nqrduck_spectrometer_limenqr/widget.py index fdac95e..da6ec31 100644 --- a/src/nqrduck_spectrometer_limenqr/widget.py +++ b/src/nqrduck_spectrometer_limenqr/widget.py @@ -1,27 +1,25 @@ -# -*- coding: utf-8 -*- - # Form implementation generated from reading ui file '../Modules/nqrduck-spectrometer-limenqr/src/nqrduck_spectrometer_limenqr/resources/limenqr_widget.ui' # -# Created by: PyQt5 UI code generator 5.15.9 +# Created by: PyQt6 UI code generator 6.5.1 # -# WARNING: Any manual changes made to this file will be lost when pyuic5 is +# WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. -from PyQt5 import QtCore, QtGui, QtWidgets +from PyQt6 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(800, 600) - self.gridLayoutWidget = QtWidgets.QWidget(Form) + self.gridLayoutWidget = QtWidgets.QWidget(parent=Form) self.gridLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 811, 611)) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") - self.pushButton = QtWidgets.QPushButton(self.gridLayoutWidget) + self.pushButton = QtWidgets.QPushButton(parent=self.gridLayoutWidget) self.pushButton.setObjectName("pushButton") self.gridLayout.addWidget(self.pushButton, 0, 0, 1, 1)