diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-09-17 20:22:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-09-17 20:22:05 +0100 |
commit | 829ab3eaa2d525901fba41484ba3c5affa1ba39b (patch) | |
tree | 2501a036b3a406c2d0796a4351bb1f5e2daa2293 /src/frontend | |
parent | 1277a7885b0da7cb561b9bf0203260d00fb73c33 (diff) |
sisyphus-gui: search as you type, fix variable split(no longer needed)
Diffstat (limited to 'src/frontend')
-rwxr-xr-x | src/frontend/gui/sisyphus-gui.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 10c1ed8..71b848f 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -13,7 +13,7 @@ class Sisyphus(QtWidgets.QMainWindow): self.progress.hide() self.loadDatabase("'%%'") - self.input.returnPressed.connect(self.filterDatabase) + self.input.textEdited.connect(self.filterDatabase) self.installThread = InstallThread() self.install.clicked.connect(self.packageInstall) @@ -78,9 +78,8 @@ class Sisyphus(QtWidgets.QMainWindow): Sisyphus.PKGLIST = [] for index in sorted(indexes): Sisyphus.PKGLIST.append(index.data()) - print(Sisyphus.PKGLIST) - #self.showProgressBar() - #self.installThread.start() + self.showProgressBar() + self.installThread.start() def finishedInstall(self): self.hideProgressBar() @@ -92,9 +91,8 @@ class Sisyphus(QtWidgets.QMainWindow): Sisyphus.PKGLIST = [] for index in sorted(indexes): Sisyphus.PKGLIST.append(index.data()) - print(Sisyphus.PKGLIST) - #self.showProgressBar() - #self.uninstallThread.start() + self.showProgressBar() + self.uninstallThread.start() def finishedUninstall(self): self.hideProgressBar() @@ -145,14 +143,14 @@ class InstallThread(QtCore.QThread): installFinished = QtCore.pyqtSignal() def run(self): PKGLIST = Sisyphus.PKGLIST - sisyphus_pkg_auto_install(PKGLIST.split()) + sisyphus_pkg_auto_install(PKGLIST) self.installFinished.emit() class UninstallThread(QtCore.QThread): uninstallFinished = QtCore.pyqtSignal() def run(self): PKGLIST = Sisyphus.PKGLIST - sisyphus_pkg_auto_uninstall(PKGLIST.split()) + sisyphus_pkg_auto_uninstall(PKGLIST) self.uninstallFinished.emit() class UpgradeThread(QtCore.QThread): |