summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2024-12-03 01:41:55 +0100
committernasrlol <nsrddyn@gmail.com>2024-12-03 01:41:55 +0100
commit88567c71a6f9d78870e4c0ced326ae24f4b965aa (patch)
tree10711f66e275b79384ed7a3013ef617f417be309
parent052714d13dee18143db6623b68ab3fde3a2ca59b (diff)
referesh of source files
-rw-r--r--source/main.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/main.py b/source/main.py
index 95c7b0c..5a37a88 100644
--- a/source/main.py
+++ b/source/main.py
@@ -11,8 +11,8 @@ import hardware_driver as lcd
import features as fe
import sys
-F = fe.feat() # Assuming 'feat' is a class in your 'features' module
-L = lcd.LCD() # Assuming 'LCD' is a class in your 'hardware_driver' module
+F = fe.feat()
+L = lcd.LCD()
class mainWindow(QMainWindow):
@@ -23,7 +23,7 @@ class mainWindow(QMainWindow):
self.mainUI()
def mainUI(self):
- central_widget = QWidget(self) # Fixed variable name (capital 'C' to lowercase)
+ central_widget = QWidget(self)
self.setCentralWidget(central_widget)
self.label = QLabel("CONNECTED TO I2C DEVICE", self)
@@ -38,9 +38,9 @@ class mainWindow(QMainWindow):
central_widget.setLayout(layout)
- def clear_screen(self): # Added 'self' as the first argument
- F.clear() # Call the clear method from 'feat' object
- self.label.setText("Cleared the LCD screen") # Update the label text
+ def clear_screen(self):
+ F.clear()
+ self.label.setText("Cleared the LCD screen")
if __name__ == "__main__":