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:
parent
d2ab023fa8
commit
882f19945c
@ -7,8 +7,12 @@ from datetime import datetime
|
||||
import numpy as np
|
||||
from collections import deque
|
||||
|
||||
from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLabel,
|
||||
QPushButton, QLineEdit, QFrame, QCheckBox, QMessageBox, QFileDialog)
|
||||
# Suppress QStandardPaths warning
|
||||
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.QtGui import QColor, QPalette
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user