From 65cc117b5b0e326aa6264756ce8dcf57528ae585 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 23 Sep 2017 21:13:30 +0100 Subject: make use of statusbar to display messages --- src/frontend/gui/sisyphus-gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frontend') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 691c072..0238e55 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -135,7 +135,7 @@ class Sisyphus(QtWidgets.QMainWindow): def packageInstall(self): indexes = self.database.selectionModel().selectedRows(1) if len(indexes) == 0: - self.input.setText("Please select at least one package!!!") + self.statusBar().showMessage("No package selected, please pick at least one!", 3000) else: Sisyphus.PKGLIST = [] for index in sorted(indexes): @@ -145,7 +145,7 @@ class Sisyphus(QtWidgets.QMainWindow): def packageUninstall(self): indexes = self.database.selectionModel().selectedRows(1) if len(indexes) == 0: - self.input.setText("Please select at least one package!!!") + self.statusBar().showMessage("No package selected, please pick at least one!", 3000) else: Sisyphus.PKGLIST = [] for index in sorted(indexes): -- cgit v1.2.3