Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kmap
xsocs
Commits
8f56e4bd
Commit
8f56e4bd
authored
Jul 24, 2019
by
Thomas Vincent
Browse files
Merge branch 'update-isdeleted' into 'master'
Use wrapper over sip.isdeleted from silx See merge request
!118
parents
fa5d3baf
8de826c9
Pipeline
#12891
failed with stages
in 5 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
xsocs/gui/project/ProjectNodes.py
View file @
8f56e4bd
...
...
@@ -36,12 +36,7 @@ import weakref
import
h5py
from
silx.gui
import
qt
as
Qt
,
icons
if
Qt
.
BINDING
==
'PySide'
:
def
isdeleted
(
widget
):
return
False
else
:
from
sip
import
isdeleted
from
silx.gui.qt
import
inspect
from
..model.Node
import
Node
from
..model.ModelDef
import
ModelColumns
...
...
@@ -166,7 +161,7 @@ class IntensityGroupNode(H5GroupNode):
"""
view
=
self
.
__viewWidget
if
view
is
None
or
view
()
is
None
or
isdelete
d
(
view
()):
if
view
is
None
or
view
()
is
None
or
not
inspect
.
isVali
d
(
view
()):
iGroup
=
IntensityGroup
(
self
.
h5File
,
nodePath
=
self
.
h5Path
)
view
=
weakref
.
ref
(
IntensityView
(
iGroup
,
parent
))
self
.
__viewWidget
=
view
...
...
@@ -496,7 +491,7 @@ class QSpaceItemNode(ProjectNode):
:return:
"""
view
=
self
.
__viewWidget
if
view
is
None
or
view
()
is
None
or
isdelete
d
(
view
()):
if
view
is
None
or
view
()
is
None
or
not
inspect
.
isVali
d
(
view
()):
qItem
=
QSpaceItem
(
self
.
h5File
,
nodePath
=
self
.
h5Path
)
view
=
weakref
.
ref
(
QSpaceView
(
qItem
,
parent
=
parent
))
self
.
__viewWidget
=
view
...
...
@@ -639,7 +634,7 @@ class FitItemNode(ProjectNode):
:return:
"""
view
=
self
.
__viewWidget
if
view
is
None
or
view
()
is
None
or
isdelete
d
(
view
()):
if
view
is
None
or
view
()
is
None
or
not
inspect
.
isVali
d
(
view
()):
fitItem
=
FitItem
(
self
.
h5File
,
nodePath
=
self
.
h5Path
)
view
=
weakref
.
ref
(
FitView
(
parent
,
fitItem
))
self
.
__viewWidget
=
view
...
...
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