[PATCH 3/7] Add a property that provides a list of all selectors in the accordion.
David Lehman
dlehman at redhat.com
Thu Oct 4 14:59:17 UTC 2012
---
pyanaconda/ui/gui/spokes/lib/accordion.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py
index ed4566c..a5812c2 100644
--- a/pyanaconda/ui/gui/spokes/lib/accordion.py
+++ b/pyanaconda/ui/gui/spokes/lib/accordion.py
@@ -69,6 +69,10 @@ class Accordion(Gtk.Box):
def allPages(self):
return [e.get_child() for e in self._expanders]
+ @property
+ def allSelectors(self):
+ return [s for p in self.allPages for s in getattr(p, "_members", [])]
+
def currentPage(self):
for e in self._expanders:
if e.get_expanded():
--
1.7.7.6
More information about the anaconda-patches
mailing list