--- a/tuikit/pager.py Mon Feb 20 18:15:13 2012 +0100
+++ b/tuikit/pager.py Thu Dec 13 10:01:32 2012 +0100
@@ -8,7 +8,15 @@
class Pager(Container):
- '''Only one of children is visible at the time.'''
+ '''Only one of children is visible at the time.
+
+ Pages are switched using buttons at top (tabs).
+
+ page_one = Container()
+ pager.add(page_one, title="page one")
+ pager.select(page_one)
+
+ '''
def __init__(self, width=20, height=20):
Container.__init__(self, width, height)
@@ -23,7 +31,7 @@
Container.add(self, self.buttons)
horz = HorizontalLayout(homogeneous=True, spacing=1)
self.buttons.layout(horz)
-
+
def add(self, widget, **kw):
Container.add(self, widget, expand=True, fill=True)