diff options
Diffstat (limited to 'source/main.py')
| -rw-r--r-- | source/main.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/main.py b/source/main.py index 5bad9d9..81bd07a 100644 --- a/source/main.py +++ b/source/main.py | |||
| @@ -8,11 +8,13 @@ from PySide6.QtWidgets import ( | |||
| 8 | QWidget, | 8 | QWidget, |
| 9 | ) | 9 | ) |
| 10 | from PySide6.QtCore import Qt | 10 | from PySide6.QtCore import Qt |
| 11 | import hardware_driver as lcd | 11 | import hardware_driver as LCD |
| 12 | import features as fe | ||
| 12 | import sys | 13 | import sys |
| 13 | 14 | ||
| 15 | F = fe() | ||
| 16 | L = LCD() | ||
| 14 | 17 | ||
| 15 | L = lcd() | ||
| 16 | 18 | ||
| 17 | class mainWindow(QMainWindow): | 19 | class mainWindow(QMainWindow): |
| 18 | def __init__(self): | 20 | def __init__(self): |
| @@ -38,7 +40,7 @@ class mainWindow(QMainWindow): | |||
| 38 | central_widget.setLayout(layout) | 40 | central_widget.setLayout(layout) |
| 39 | 41 | ||
| 40 | def clear_screen(): | 42 | def clear_screen(): |
| 41 | L.clear() | 43 | fe.clear() |
| 42 | self.label.setText("Cleared the LCD screen", self) | 44 | self.label.setText("Cleared the LCD screen", self) |
| 43 | 45 | ||
| 44 | 46 | ||
