GUI development
This commit is contained in:
@@ -14,6 +14,7 @@ import modules.vars as horsy_vars
|
||||
|
||||
|
||||
# Functions
|
||||
def installed_apps():
|
||||
|
||||
|
||||
# Initialize GUI
|
||||
|
||||
@@ -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
4
web_vars/search_app
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"APP_ID": "VBUJO9OW62",
|
||||
"API_KEY": "759f6c7986842fd8218e79e3b9ddb964"
|
||||
}
|
||||
Reference in New Issue
Block a user