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
9141451d
Commit
9141451d
authored
Jul 06, 2021
by
Julia Garriga Ferrer
Committed by
Julia Garriga Ferrer
Jul 06, 2021
Browse files
[orangecontrib][shift] Use ShiftCorrectionDialog instead of ShiftCorrectionWidget
parent
e3c897b5
Pipeline
#49939
failed with stage
in 2 minutes and 51 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
darfix/gui/shiftCorrectionWidget.py
View file @
9141451d
...
...
@@ -41,6 +41,7 @@ from darfix.core.dataset import Operation
from
.operationThread
import
OperationThread
from
.utils
import
ChooseDimensionDock
class
ShiftCorrectionDialog
(
qt
.
QDialog
):
"""
Dialog with `ShiftCorrectionWidget` as main window and standard buttons.
...
...
@@ -166,6 +167,7 @@ class ShiftCorrectionWidget(qt.QMainWindow):
def
resetStack
(
self
):
self
.
_update_dataset
=
self
.
dataset
self
.
setStack
()
def
updateProgress
(
self
,
progress
):
self
.
sigProgressChanged
.
emit
(
progress
)
...
...
orangecontrib/darfix/widgets/shiftcorrection.py
View file @
9141451d
...
...
@@ -32,7 +32,7 @@ __date__ = "11/12/2020"
from
Orange.widgets.settings
import
Setting
from
Orange.widgets.widget
import
OWWidget
,
Input
,
Output
from
silx.gui.colors
import
Colormap
from
darfix.gui.shiftCorrectionWidget
import
ShiftCorrection
Widget
from
darfix.gui.shiftCorrectionWidget
import
ShiftCorrection
Dialog
class
ShiftCorrectionWidgetOW
(
OWWidget
):
...
...
@@ -60,8 +60,8 @@ class ShiftCorrectionWidgetOW(OWWidget):
def
__init__
(
self
):
super
().
__init__
()
self
.
_widget
=
ShiftCorrection
Widget
(
parent
=
self
)
self
.
_widget
.
sigComputed
.
connect
(
self
.
_sendSignal
)
self
.
_widget
=
ShiftCorrection
Dialog
(
parent
=
self
)
self
.
_widget
.
okSignal
.
connect
(
self
.
_sendSignal
)
self
.
controlArea
.
layout
().
addWidget
(
self
.
_widget
)
if
self
.
shift
:
...
...
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