summaryrefslogtreecommitdiff
path: root/src/leap/gui/utils.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-07 04:48:12 +0900
committerkali <kali@leap.se>2012-11-07 04:50:26 +0900
commit6032f776cabcd04aa7f4e1f55a34ecfec2775e85 (patch)
treec82600d3ad656b9ab6bf8d23e36a2b79c9f33e64 /src/leap/gui/utils.py
parent00009f8a7de957c4d53c10855cae1396108203c3 (diff)
changes to update_signal
+ Fix update + Rename + Changed signature (we update progress bar from slot now)
Diffstat (limited to 'src/leap/gui/utils.py')
-rw-r--r--src/leap/gui/utils.py10
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()))