From 446f3d4742f88b09c85e83e96f6505cd3f6302c5 Mon Sep 17 00:00:00 2001 From: nasrlol Date: Wed, 27 Nov 2024 03:29:03 +0100 Subject: switched to using qt --- I2C-CONTROLLER/gui.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 I2C-CONTROLLER/gui.py (limited to 'I2C-CONTROLLER/gui.py') diff --git a/I2C-CONTROLLER/gui.py b/I2C-CONTROLLER/gui.py new file mode 100644 index 0000000..a8f1f35 --- /dev/null +++ b/I2C-CONTROLLER/gui.py @@ -0,0 +1,25 @@ +import sys +import PySide6 import QtCore, QtWidgets, QtGui +from ui_form import Ui_GUI # Assuming this is the file generated from your .ui file +# from hardware_driver import custom_greeting, pomodoro, system_readings, display_uptime, recognize_speech, save_notes + + +class gui(QMainWindow): + def __init__(self, parent=None): + super().__init__(parent) + self.ui = Ui_GUI() # Assuming this is the auto-generated UI class + self.ui.setupUi(self) + self.setWindowTitle("LCD1602") + + + + + +if __name__ == "__main__": + app = QApplication(sys.argv) + + widget = gui() + widget.resize(800, 600) + widget.show() + + sys.exit(app.exec()) -- cgit v1.2.3-70-g09d2