From 5e502c7bce94bed78413247fa0bd0852bde9f2ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 23 Jan 2021 18:46:07 +0000 Subject: modernise the gui interface --- src/frontend/gui/sisyphus-gui.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/frontend/gui/sisyphus-gui.py') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 4e9a8b1..fa2b057 100644 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -21,25 +21,25 @@ class Sisyphus(QtWidgets.QMainWindow): self.show() self.filterApplications = OrderedDict([ - ('Search by Name', 'pn'), - ('Search by Category', 'cat'), - ('Search by Description', 'descr') + ('name', 'pn'), + ('category', 'cat'), + ('description', 'descr') ]) self.applicationFilter.addItems(self.filterApplications.keys()) - self.applicationFilter.setCurrentText('Search by Name') + self.applicationFilter.setCurrentText('name') self.applicationFilter.currentIndexChanged.connect(self.setApplicationFilter) - Sisyphus.applicationView = self.filterApplications['Search by Name'] + Sisyphus.applicationView = self.filterApplications['name'] self.filterDatabases = OrderedDict([ - ('All Packages', 'all'), - ('Installed Packages', 'installed'), - ('Available Packages', 'installable'), - ('Upgradable Packages', 'upgradable') + ('all packages', 'all'), + ('installed packages', 'installed'), + ('available packages', 'installable'), + ('upgradable packages', 'upgradable') ]) self.databaseFilter.addItems(self.filterDatabases.keys()) - self.databaseFilter.setCurrentText('All Packages') + self.databaseFilter.setCurrentText('all packages') self.databaseFilter.currentIndexChanged.connect(self.setDatabaseFilter) - Sisyphus.databaseView = self.filterDatabases['All Packages'] + Sisyphus.databaseView = self.filterDatabases['all packages'] Sisyphus.searchTerm = "'%%'" -- cgit v1.2.3