diff options
| -rw-r--r-- | source/features.py | 5 | ||||
| -rw-r--r-- | source/main_cli.py | 8 |
2 files changed, 2 insertions, 11 deletions
diff --git a/source/features.py b/source/features.py index 2d2d80e..b86cca5 100644 --- a/source/features.py +++ b/source/features.py @@ -3,7 +3,6 @@ import os import speech_recognition as sr from gpiozero import CPUTemperature import hardware_driver as lcd # importing the ./hardware_driver.py file -from main_cli import input_handling # some functions need to be put on a different thread but we are keeping that project for another time # import threading @@ -153,11 +152,11 @@ class feat: print("Error:", e) return None - def save_notes(self, input_handling): + def save_notes(self, input): self.clear_terminal_lcd() print("Type your notes (type 'stop' to exit):") while True: - note = input_handling(": ") + note = input if note.lower() in ["stop", "exit", "quit"]: break first_line = note[:16] diff --git a/source/main_cli.py b/source/main_cli.py index b474551..53f49aa 100644 --- a/source/main_cli.py +++ b/source/main_cli.py @@ -98,14 +98,6 @@ def draw_menu(stdscr): break # Exit the while loop and terminate the program -def input_handling(): - while True: - key = stdscr.getkey() - stdcr.addstr(f"key: {key}") - stdcr.refresh() - stdcr.getch() - - def main(): """ The main function wraps the curses functionality and runs the application. |
