summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2024-12-09 21:37:55 +0100
committernasrlol <nsrddyn@gmail.com>2024-12-09 21:37:55 +0100
commit00589c266eb6fc048b6ae7d00a72303876d2b247 (patch)
tree7cf7eba37850463c2475f822756ddbfff6c87453 /source
parent2049c11d4f2f1b2bfa48c23b9eba6cb1babfc812 (diff)
fixed the custom greeting
Diffstat (limited to 'source')
-rw-r--r--source/features.py5
-rw-r--r--source/main_cli.py8
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.