Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
f18f2b11
Commit
f18f2b11
authored
Apr 30, 2014
by
Luke Campagnola
Browse files
Fix: TextParameterItem now obeys 'readonly' option
parent
17294169
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/parametertree/parameterTypes.py
View file @
f18f2b11
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment