GUI development
This commit is contained in:
@@ -584,13 +584,7 @@ class Ui_MainWindow(object):
|
||||
self.installed_table.setDragDropOverwriteMode(False)
|
||||
self.installed_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
|
||||
self.installed_table.setShowGrid(False)
|
||||
self.installed_table.setRowCount(1)
|
||||
self.installed_table.setColumnCount(4)
|
||||
self.installed_table.setObjectName("installed_table")
|
||||
item = QtWidgets.QTableWidgetItem()
|
||||
self.installed_table.setItem(0, 0, item)
|
||||
item = QtWidgets.QTableWidgetItem()
|
||||
self.installed_table.setItem(0, 1, item)
|
||||
self.installed_table.horizontalHeader().setVisible(False)
|
||||
self.installed_table.horizontalHeader().setDefaultSectionSize(203)
|
||||
self.installed_table.horizontalHeader().setHighlightSections(False)
|
||||
|
||||
@@ -142,11 +142,12 @@ def uninstall(package, is_gui=False):
|
||||
def apps_list(is_gui=False):
|
||||
apps = list()
|
||||
if os.path.exists('{0}apps'.format(horsy_vars.horsypath)):
|
||||
print(f"[green]Installed apps:[/]")
|
||||
if not is_gui:
|
||||
print(f"[green]Installed apps:[/]")
|
||||
for file in os.listdir('{0}apps'.format(horsy_vars.horsypath)):
|
||||
if file.endswith(".bat") and not is_gui:
|
||||
print(f"{file.split('.')[0]}")
|
||||
else:
|
||||
elif file.endswith(".bat"):
|
||||
apps.append(file.split('.')[0])
|
||||
if is_gui:
|
||||
return apps
|
||||
|
||||
@@ -6,8 +6,9 @@ import modules.vars as horsy_vars
|
||||
import json
|
||||
from rich import print
|
||||
|
||||
|
||||
client = SearchClient.create('VBUJO9OW62', '759f6c7986842fd8218e79e3b9ddb964')
|
||||
client = SearchClient.create(
|
||||
requests.get('https://raw.githubusercontent.com/BarsTiger/horsy/master/web_vars/search_app').json()['APP_ID'],
|
||||
requests.get('https://raw.githubusercontent.com/BarsTiger/horsy/master/web_vars/search_app').json()['API_KEY'])
|
||||
index = client.init_index('packages')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user