Update config.py, system.py, and 5 more files...

This commit is contained in:
cheykrym committed 2024-10-14 21:47:19 +03:00
1 parent 44c61a4da5
commit 700492ca5f
7 files changed
+41

No files matched your search

+1
View File
@@ -0,0 +1 @@
debug=0
+10
View File
@@ -0,0 +1,10 @@
import os
import platform
def clear_console():
"""Очистить консоль в зависимости от операционной системы."""
os_name = platform.system()
if os_name == 'Windows':
os.system('cls')
else:
os.system('clear')
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+28
View File
@@ -0,0 +1,28 @@
from app.utils.config import debug
from app.utils.system import clear_console
#from test_module import *
def main_menu():
clear_console()
while True:
print('\nMain Menu:')
print('1. Start')
print('0. Exit')
choice = input('Select an option: ')
clear_console()
if choice == '1':
#return test()
return
elif choice == '0':
print('Exiting program...')
break
else:
print('Invalid option')
if __name__ == "__main__":
main_menu()
+2
View File
@@ -0,0 +1,2 @@
numpy==2.1.2
matplotlib==3.9.2