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
6b3cfbc6
Commit
6b3cfbc6
authored
Aug 18, 2013
by
Luke Campagnola
Browse files
Fixed parametertree selection bug
parent
2095a4c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/parametertree/ParameterTree.py
View file @
6b3cfbc6
from
pyqtgraph.Qt
import
QtCore
,
QtGui
from
pyqtgraph.widgets.TreeWidget
import
TreeWidget
import
os
,
weakref
,
re
from
.ParameterItem
import
ParameterItem
#import functions as fn
...
...
@@ -103,7 +104,7 @@ class ParameterTree(TreeWidget):
sel
=
self
.
selectedItems
()
if
len
(
sel
)
!=
1
:
sel
=
None
if
self
.
lastSel
is
not
None
:
if
self
.
lastSel
is
not
None
and
isinstance
(
self
.
lastSel
,
ParameterItem
)
:
self
.
lastSel
.
selected
(
False
)
if
sel
is
None
:
self
.
lastSel
=
None
...
...
Write
Preview
Markdown
is supported
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