From a73b2e2be62c3f6c9e0093e1504389fa34ee5632 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 12 Apr 2015 11:26:33 -0700 Subject: [PATCH] Write status message in single line in Qt toolbar. Currently, the status message is partially hidden when embedding a Toolbar in a Qt4 app (see e.g. embedding_in_qt4_wtoolbar.py: activate the pan tool and hover the mouse over the figure; the two lines of the status messages don't fit in the toolbar). The split-line message was introduced in 3c61684 to avoid automatic horizontal expansion of the toolbar in presence of long messages (I guess) but I cannot reproduce that issue right now. --- lib/matplotlib/backends/backend_qt5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_qt5.py b/lib/matplotlib/backends/backend_qt5.py index e3e0624552fc..725cae68dece 100644 --- a/lib/matplotlib/backends/backend_qt5.py +++ b/lib/matplotlib/backends/backend_qt5.py @@ -676,7 +676,7 @@ def dynamic_update(self): def set_message(self, s): self.message.emit(s) if self.coordinates: - self.locLabel.setText(s.replace(', ', '\n')) + self.locLabel.setText(s) def set_cursor(self, cursor): if DEBUG: