summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
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
3import speech_recognition as sr 3import speech_recognition as sr
4from gpiozero import CPUTemperature 4from gpiozero import CPUTemperature
5import hardware_driver as lcd # importing the ./hardware_driver.py file 5import hardware_driver as lcd # importing the ./hardware_driver.py file
6from main_cli import input_handling
7 6
8# some functions need to be put on a different thread but we are keeping that project for another time 7# some functions need to be put on a different thread but we are keeping that project for another time
9# import threading 8# import threading
@@ -153,11 +152,11 @@ class feat:
153 print("Error:", e) 152 print("Error:", e)
154 return None 153 return None
155 154
156 def save_notes(self, input_handling): 155 def save_notes(self, input):
157 self.clear_terminal_lcd() 156 self.clear_terminal_lcd()
158 print("Type your notes (type 'stop' to exit):") 157 print("Type your notes (type 'stop' to exit):")
159 while True: 158 while True:
160 note = input_handling(": ") 159 note = input
161 if note.lower() in ["stop", "exit", "quit"]: 160 if note.lower() in ["stop", "exit", "quit"]:
162 break 161 break
163 first_line = note[:16] 162 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):
98 break # Exit the while loop and terminate the program 98 break # Exit the while loop and terminate the program
99 99
100 100
101def input_handling():
102 while True:
103 key = stdscr.getkey()
104 stdcr.addstr(f"key: {key}")
105 stdcr.refresh()
106 stdcr.getch()
107
108
109def main(): 101def main():
110 """ 102 """
111 The main function wraps the curses functionality and runs the application. 103 The main function wraps the curses functionality and runs the application.