MainCode/adalm1000_logger.py aktualisiert

Key changes made:

    Added os.environ['QT_LOGGING_RULES'] = 'qt.qpa.*=false' at the beginning to suppress the QStandardPaths warning.

    Added QGridLayout to the imports from PyQt5.QtWidgets.

    Fixed the display layout section to properly use QGridLayout.

    Made sure all necessary Qt classes are imported at the top of the file.
(D)
This commit is contained in:
Jan 2025-06-27 16:18:35 +02:00
parent d2ab023fa8
commit 882f19945c

View File

@ -7,8 +7,12 @@ from datetime import datetime
import numpy as np import numpy as np
from collections import deque from collections import deque
from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLabel, # Suppress QStandardPaths warning
QPushButton, QLineEdit, QFrame, QCheckBox, QMessageBox, QFileDialog) os.environ['QT_LOGGING_RULES'] = 'qt.qpa.*=false'
from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout,
QGridLayout, QLabel, QPushButton, QLineEdit, QFrame,
QCheckBox, QMessageBox, QFileDialog)
from PyQt5.QtCore import Qt, QTimer, pyqtSignal, pyqtSlot, QObject from PyQt5.QtCore import Qt, QTimer, pyqtSignal, pyqtSlot, QObject
from PyQt5.QtGui import QColor, QPalette from PyQt5.QtGui import QColor, QPalette