From 3ba35096425b3f9d1a203598e10a2eb69d499654 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 24 Sep 2017 23:06:48 +0100 Subject: rearrange the tuples alphabetically, give some more information in qcombobox --- src/frontend/gui/sisyphus-gui.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 715dfd0..f910bb1 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -12,23 +12,23 @@ class Sisyphus(QtWidgets.QMainWindow): self.show() self.SEARCHFIELDS = OrderedDict ([ - ('Category', 'cat'), - ('Name', 'pn'), - ('Description', 'descr') + ('Search by category', 'cat'), + ('Search by description', 'descr'), + ('Search by name', 'pn') ]) self.selectfield.addItems(self.SEARCHFIELDS.keys()) - self.selectfield.setCurrentIndex(1) + self.selectfield.setCurrentIndex(2) self.selectfield.currentIndexChanged.connect(self.setSearchField) - Sisyphus.SEARCHFIELD = self.SEARCHFIELDS['Name'] + Sisyphus.SEARCHFIELD = self.SEARCHFIELDS['Search by name'] self.SEARCHFILTERS = OrderedDict ([ - ('All', ''), - ('Available', 'AND iv IS NULL'), - ('Installed', 'AND iv IS NOT NULL'), - ('Upgradable', 'AND iv <> av'), - ('Removable', 'AND rmv = "yes"') + ('All packages', ''), + ('Installed packages', 'AND iv IS NOT NULL'), + ('Installable packages', 'AND iv IS NULL'), + ('Removable packages', 'AND rmv = "yes"'), + ('Upgradable packages', 'AND iv <> av') ]) - Sisyphus.SEARCHFILTER = self.SEARCHFILTERS['All'] + Sisyphus.SEARCHFILTER = self.SEARCHFILTERS['All packages'] Sisyphus.SEARCHTERM = "'%%'" -- cgit v1.2.3