From e1c652662d7d7bc6926c1a0555f41d82860bd276 Mon Sep 17 00:00:00 2001 From: lesauxvi Date: Fri, 18 Mar 2016 13:48:50 +0100 Subject: [PATCH] change in the setText method of TextItem --- pyqtgraph/graphicsItems/TextItem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyqtgraph/graphicsItems/TextItem.py b/pyqtgraph/graphicsItems/TextItem.py index a0987b82..cc33b105 100644 --- a/pyqtgraph/graphicsItems/TextItem.py +++ b/pyqtgraph/graphicsItems/TextItem.py @@ -58,14 +58,14 @@ class TextItem(GraphicsObject): self.border = fn.mkPen(border) self.setAngle(angle) - def setText(self, text, color=(200,200,200)): + def setText(self, text, color=None): """ Set the text of this item. - The color entry is deprecated and kept to avoid an API change. - This method sets the plain text of the item; see also setHtml(). """ + if color is not None: + self.setColor(color) self.textItem.setPlainText(text) self.updateTextPos()