Skip to content

Commit 85ed02d

Browse files
committed
Improve widget initialization with configurable layout direction
1 parent 487c2a6 commit 85ed02d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pytools/ew/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class EwGroup(MyQtWidget, EwBasic):
4646
def radraw_handler(self, vals: List[Union[float, int, str, NoDataStub]], vals_map: Dict):
4747
pass
4848

49-
def __init__(self, widgets: List[EwBasic | MyQtWidget]):
50-
MyQtWidget.__init__(self, layout_vertical=False)
49+
def __init__(self, widgets: List[EwBasic | MyQtWidget], *, layout_vertical : bool = False):
50+
MyQtWidget.__init__(self, layout_vertical=layout_vertical)
5151
EwBasic.__init__(self)
5252

5353
self.group_widgets = widgets

0 commit comments

Comments
 (0)