Jan d2ab023fa8 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)
2025-06-27 16:01:20 +02:00
..