MainCode/adalm1000_logger.py aktualisiert
Key Changes in the Migration:
Threading Model:
Replaced Tkinter's after() with Qt's signal/slot mechanism
Created a proper QThread for continuous measurements
Used Qt's built-in threading for better integration
UI Structure:
Replaced Tkinter widgets with Qt equivalents (QMainWindow, QWidget, QVBoxLayout, etc.)
Used Qt's layout system instead of pack/grid
Implemented styling with Qt's stylesheet system
Event Handling:
Replaced Tkinter's command callbacks with Qt's signal/slot connections
Used pyqtSlot decorators for cleaner event handling
Plotting:
Switched to Qt's FigureCanvas backend for matplotlib
Maintained the same plotting functionality but with Qt integration
Error Handling:
Replaced Tkinter messageboxes with Qt's QMessageBox
Improved error handling with proper Qt signal propagation
Cleanup:
Implemented proper cleanup in closeEvent instead of protocol handlers
Ensured proper thread termination on exit
(D)
This commit is contained in:
parent
0305463857
commit
d2ab023fa8
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user