diff options
Diffstat (limited to 'src/leap/gui/utils.py')
-rw-r--r-- | src/leap/gui/utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/leap/gui/utils.py b/src/leap/gui/utils.py new file mode 100644 index 00000000..8b1e3630 --- /dev/null +++ b/src/leap/gui/utils.py @@ -0,0 +1,10 @@ +""" +utility functions to work with gui objects +""" + + +def layout_widgets(layout): + """ + return a generator with all widgets in a layout + """ + return (layout.itemAt(i) for i in range(layout.count())) |