Skip to content

Commit bf28672

Browse files
committed
ref: create gui bulk action submodule
1 parent a45fad9 commit bf28672

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

shapeout2/gui/bulk/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# flake8: noqa: F401
2+
from .bulk_emodulus import BulkActionEmodulus
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44

55
from PyQt5 import uic, QtCore, QtGui, QtWidgets
66

7-
from ..analysis.ana_slot import SlotPanel
8-
from ..widgets import show_wait_cursor
7+
from shapeout2.gui.analysis.ana_slot import SlotPanel
8+
from shapeout2.gui.widgets import show_wait_cursor
99

1010

11-
class ComputeEmodulus(QtWidgets.QDialog):
11+
class BulkActionEmodulus(QtWidgets.QDialog):
1212
#: Emitted when the pipeline is to be changed
1313
pipeline_changed = QtCore.pyqtSignal(dict)
1414

1515
def __init__(self, parent, pipeline, *args, **kwargs):
1616
QtWidgets.QWidget.__init__(self, parent, *args, **kwargs)
1717
path_ui = pkg_resources.resource_filename(
18-
"shapeout2.gui.compute", "comp_emodulus.ui")
18+
"shapeout2.gui.bulk", "bulk_emodulus.ui")
1919
uic.loadUi(path_ui, self)
2020
# main
2121
self.parent = self.parent

shapeout2/gui/compute/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# flake8: noqa: F401
2-
from .comp_emodulus import ComputeEmodulus
32
from .comp_stats import ComputeStatistics

shapeout2/gui/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import pyqtgraph as pg
1616

1717
from . import analysis
18+
from . import bulk
1819
from . import compute
1920
from . import dcor
2021
from . import export
@@ -531,7 +532,7 @@ def on_action_compute_statistics(self):
531532
dlg.exec()
532533

533534
def on_action_compute_emodulus(self):
534-
dlg = compute.ComputeEmodulus(self, pipeline=self.pipeline)
535+
dlg = bulk.BulkActionEmodulus(self, pipeline=self.pipeline)
535536
dlg.pipeline_changed.connect(self.adopt_pipeline)
536537
dlg.exec()
537538

0 commit comments

Comments
 (0)