diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-09-24 23:06:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-09-24 23:06:48 +0100 |
commit | 3ba35096425b3f9d1a203598e10a2eb69d499654 (patch) | |
tree | 14a9128b595d03468fef89dd329154e673779cb5 /src/frontend/gui/sisyphus-gui.py | |
parent | f9949b31a43e6084ab8f6850b623069dd7485a0f (diff) |
rearrange the tuples alphabetically, give some more information in qcombobox
Diffstat (limited to 'src/frontend/gui/sisyphus-gui.py')
-rwxr-xr-x | src/frontend/gui/sisyphus-gui.py | 22 |
1 files 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 = "'%%'" |