Commit f18f2b11 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Fix: TextParameterItem now obeys 'readonly' option

parent 17294169
......@@ -636,6 +636,7 @@ class TextParameterItem(WidgetParameterItem):
def makeWidget(self):
self.textBox = QtGui.QTextEdit()
self.textBox.setMaximumHeight(100)
self.textBox.setReadOnly(self.param.opts.get('readonly', False))
self.textBox.value = lambda: str(self.textBox.toPlainText())
self.textBox.setValue = self.textBox.setPlainText
self.textBox.sigChanged = self.textBox.textChanged
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment