Commit 2c0e2f09 authored by Henri Payno's avatar Henri Payno
Browse files

[ewoksorange] use inputsChanged instead of task_input_changed

parent dd735fbd
......@@ -37,22 +37,16 @@ _logger = logging.getLogger(__file__)
class _ProcessForOrangeMixIn(OWEwoksWidgetOneThread):
def _ewoksTaskFinishedCallback(self):
with self._ewoksTaskFinishedContext():
self.outputsChanged()
super()._ewoksTaskFinishedCallback()
def handleNewSignals(self):
self.inputsChanged()
self.task_input_changed()
super().handleNewSignals()
def inputsChanged(self):
def task_input_changed(self):
pass
def outputsChanged(self):
# TODO: maybe we would expect a task_outputs to match the task_inputs
if "xas_obj" in self.output_variables:
xas_obj = self.output_variables["xas_obj"].value
def task_output_changed(self):
if "xas_obj" in self.task_outputs:
xas_obj = self.task_outputs["xas_obj"].value
if isinstance(xas_obj, MissingData):
_logger.warning("no output data set. Unable to update the GUI")
return
......
......@@ -111,8 +111,8 @@ class E0calculatorOW(
else:
return self._widget.getE0(method=self._methodToUse)
def inputsChanged(self):
super().inputsChanged()
def task_input_changed(self):
super().task_input_changed()
self._buttons.show()
self.show()
......
......@@ -105,8 +105,8 @@ class EnergyRoiOW(
def setROI(self, roi):
self._widget.setROI(roi=roi)
def inputsChanged(self):
super(EnergyRoiOW, self).inputsChanged()
def task_input_changed(self):
super(EnergyRoiOW, self).task_input_changed()
self._buttons.show()
self.show()
......
......@@ -87,8 +87,8 @@ class RoiSelectionOW(
self.setROI = self._widget.setROI
self.getROI = self._widget.getROI
def inputsChanged(self):
super().inputsChanged()
def task_input_changed(self):
super().task_input_changed()
self._buttons.show()
self.show()
......
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