Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
00edc3fe
Commit
00edc3fe
authored
Jun 14, 2021
by
Julia Garriga Ferrer
Browse files
[orangecontrib][transformation] Remove widget when updating dataset
parent
22b66c8a
Pipeline
#48531
passed with stage
in 3 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
orangecontrib/darfix/widgets/transformation.py
View file @
00edc3fe
...
...
@@ -26,7 +26,7 @@
__authors__
=
[
"J. Garriga"
]
__license__
=
"MIT"
__date__
=
"
0
4/06/2021"
__date__
=
"
1
4/06/2021"
from
silx.gui
import
qt
...
...
@@ -54,9 +54,13 @@ class TransformationWidgetOW(OWWidget):
def
__init__
(
self
):
super
().
__init__
()
self
.
_widget
=
None
@
Inputs
.
dataset
def
setDataset
(
self
,
dataset
):
if
self
.
_widget
:
self
.
controlArea
.
layout
().
removeWidget
(
self
.
_widget
)
self
.
_widget
.
hide
()
if
dataset
:
if
not
dataset
[
0
].
dims
.
ndim
:
msg
=
qt
.
QMessageBox
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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