# HG changeset patch # User Dirk Olmes # Date 1282487708 -7200 # Node ID 19394162a39d2b70b18a1637102e157672bded47 # Parent 050748b596a89c328eb5bd0b8438fbab650709d1# Parent 2dd6e689477212aa7aaa15eb653f6b543cfd4369 Automated merge with ssh://xanthippe.dyndns.org//home/dirk/Projekte/Python/Feedworm diff -r 050748b596a8 -r 19394162a39d MainWindow.py --- a/MainWindow.py Thu Aug 19 16:06:18 2010 +0200 +++ b/MainWindow.py Sun Aug 22 16:35:08 2010 +0200 @@ -78,11 +78,15 @@ self.openSelectedEntryInWebView() def openSelectedEntryInWebView(self): + message = "Open %s ..." % (self.selectedEntry.title) + self._updateStatusBar(message) url = QUrl(self.selectedEntry.link) self.ui.webView.load(url) self.ui.webView.show() def openSelectedEntryInBrowser(self): + message = "Open %s in external browser", (self.selectedEntry.title) + self._updateStatusBar(message) # TODO make browser configurable browser = "/usr/local/bin/opera" subprocess.Popen([browser, self.selectedEntry.link]) @@ -105,7 +109,7 @@ if addFeed.exception is not None: message = "Error while adding feed: " + str(addFeed.exception) - self.ui.statusbar.showMessage(message, STATUS_MESSAGE_DISPLAY_MILLIS) + self._updateStatusBar(message) else: self.session.commit() self.updateFeedList() @@ -118,4 +122,6 @@ feedSettings = FeedSettings(self.session, self.selectedFeed) feedSettings.exec_() + def _updateStatusBar(self, message): + self.ui.statusbar.showMessage(message, STATUS_MESSAGE_DISPLAY_MILLIS)