GUI development

This commit is contained in:
BarsTiger
2022-01-26 18:40:38 +02:00
parent 13bacb9cc0
commit f6ddecd6c8
3 changed files with 12 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import modules.vars as horsy_vars
# Functions
def installed_apps():
# Initialize GUI

View File

@@ -139,9 +139,14 @@ def uninstall(package, is_gui=False):
print(f"[red]App {package} is not installed or doesn't have launch script[/]")
def apps_list():
def apps_list(is_gui=False):
apps = list()
if os.path.exists('{0}apps'.format(horsy_vars.horsypath)):
print(f"[green]Installed apps:[/]")
for file in os.listdir('{0}apps'.format(horsy_vars.horsypath)):
if file.endswith(".bat"):
if file.endswith(".bat") and not is_gui:
print(f"{file.split('.')[0]}")
else:
apps.append(file.split('.')[0])
if is_gui:
return apps

4
web_vars/search_app Normal file
View File

@@ -0,0 +1,4 @@
{
"APP_ID": "VBUJO9OW62",
"API_KEY": "759f6c7986842fd8218e79e3b9ddb964"
}