Skip to content

Commit 730acfc

Browse files
committed
FEAT: Enable custom toolbox for FIBNRWidget.
1 parent f64cbca commit 730acfc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

faslr/model/ibnr.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,20 @@ class FIBNRWidget(QWidget):
3939
def __init__(
4040
self,
4141
parent: FModelWidget,
42+
toolbox: QWidget = None
4243
):
4344
super().__init__()
4445

4546
self.parent: FModelWidget = parent
4647

4748
self.layout = QVBoxLayout()
4849

50+
if toolbox:
51+
self.toolbox = toolbox
52+
self.layout.addWidget(self.toolbox, alignment=Qt.AlignmentFlag.AlignRight)
53+
else:
54+
self.toolbox = None
55+
4956
# Only initialize base ibnr model and view if they have not been overridden.
5057
if not (hasattr(self, 'ibnr_model') and hasattr(self, 'ibnr_view')):
5158
self.ibnr_model = FIBNRModel(parent=self)

0 commit comments

Comments
 (0)