Commit 9141451d authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer Committed by Julia Garriga Ferrer
Browse files

[orangecontrib][shift] Use ShiftCorrectionDialog instead of ShiftCorrectionWidget

parent e3c897b5
Pipeline #49939 failed with stage
in 2 minutes and 51 seconds
...@@ -41,6 +41,7 @@ from darfix.core.dataset import Operation ...@@ -41,6 +41,7 @@ from darfix.core.dataset import Operation
from .operationThread import OperationThread from .operationThread import OperationThread
from .utils import ChooseDimensionDock from .utils import ChooseDimensionDock
class ShiftCorrectionDialog(qt.QDialog): class ShiftCorrectionDialog(qt.QDialog):
""" """
Dialog with `ShiftCorrectionWidget` as main window and standard buttons. Dialog with `ShiftCorrectionWidget` as main window and standard buttons.
...@@ -166,6 +167,7 @@ class ShiftCorrectionWidget(qt.QMainWindow): ...@@ -166,6 +167,7 @@ class ShiftCorrectionWidget(qt.QMainWindow):
def resetStack(self): def resetStack(self):
self._update_dataset = self.dataset self._update_dataset = self.dataset
self.setStack() self.setStack()
def updateProgress(self, progress): def updateProgress(self, progress):
self.sigProgressChanged.emit(progress) self.sigProgressChanged.emit(progress)
......
...@@ -32,7 +32,7 @@ __date__ = "11/12/2020" ...@@ -32,7 +32,7 @@ __date__ = "11/12/2020"
from Orange.widgets.settings import Setting from Orange.widgets.settings import Setting
from Orange.widgets.widget import OWWidget, Input, Output from Orange.widgets.widget import OWWidget, Input, Output
from silx.gui.colors import Colormap from silx.gui.colors import Colormap
from darfix.gui.shiftCorrectionWidget import ShiftCorrectionWidget from darfix.gui.shiftCorrectionWidget import ShiftCorrectionDialog
class ShiftCorrectionWidgetOW(OWWidget): class ShiftCorrectionWidgetOW(OWWidget):
...@@ -60,8 +60,8 @@ class ShiftCorrectionWidgetOW(OWWidget): ...@@ -60,8 +60,8 @@ class ShiftCorrectionWidgetOW(OWWidget):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self._widget = ShiftCorrectionWidget(parent=self) self._widget = ShiftCorrectionDialog(parent=self)
self._widget.sigComputed.connect(self._sendSignal) self._widget.okSignal.connect(self._sendSignal)
self.controlArea.layout().addWidget(self._widget) self.controlArea.layout().addWidget(self._widget)
if self.shift: if self.shift:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment