tuikit/pager.py
changeset 30 05500124d7fb
parent 18 e6c3a5ee91aa
child 32 088b92ffb119
--- 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)