summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-09-24 23:06:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-09-24 23:06:48 +0100
commit3ba35096425b3f9d1a203598e10a2eb69d499654 (patch)
tree14a9128b595d03468fef89dd329154e673779cb5 /src
parentf9949b31a43e6084ab8f6850b623069dd7485a0f (diff)
rearrange the tuples alphabetically, give some more information in qcombobox
Diffstat (limited to 'src')
-rwxr-xr-xsrc/frontend/gui/sisyphus-gui.py22
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 = "'%%'"