docs/widget.rst
changeset 13 19ebde2fd594
parent 12 bb7d41be0c44
child 38 c6e170452c7f
--- a/docs/widget.rst	Thu Sep 08 10:13:55 2011 +0200
+++ b/docs/widget.rst	Thu Sep 08 11:37:27 2011 +0200
@@ -2,69 +2,23 @@
 ======
 
 .. toctree::
-   :maxdepth: 2
+   :maxdepth: 3
+   :titlesonly:
 
    container
    button
 
-.. py:module:: tuikit.widget
-
-
-Class attributes
-----------------
-
-.. attribute:: Widget.parent
-
-   Parrent widget.
-
-
-.. attribute:: Widget.top
-
-   Top widget (same for every widget in one application).
-
-
-.. attribute:: Widget.x
-               Widget.y
-
-   Position inside parent widget. Modified by layout manager.
-
-
-.. attribute:: Widget.width
-               Widget.height
-
-   Actual size. Modified by layout manager.
-
-
-.. attribute:: Widget.sizemin
+.. autoclass:: tuikit.widget.Widget
+   :members:
+   :show-inheritance:
 
-   Minimal size of widget. Under normal circumstances, widget will never be sized smaller than this.
-   Tuple (w, h). Both must be integers >= 1.
-
-
-.. attribute:: Widget.sizemax
-
-   Maximum size of widget. Widget will never be sized bigger than this.
-   Tuple (w, h). Integers >= 1 or None (meaning no maximum size or infinite).
-
-
-.. attribute:: Widget.sizereq
-
-   Size request. This is default size of the widget. Will be fulfilled if possible.
-   Tuple (w, h). Integers >= 1 or None (meaning use minumal size).
-
+   .. attribute:: x
+                  y
+      
+      Position inside parent widget. Modified by layout manager.
+   
+   .. attribute:: width
+                  height
+      
+      Actual size. Modified by layout manager.
 
-.. attribute:: Widget.hidden
-
-   Hidden widget does not affect layout.
-
-
-.. attribute:: Widget.allowlayout
-
-   When false, the widget is not considered in layout.
-
-
-.. attribute:: Widget.layouthints
-
-   Dictionary containing optional parameters for layout managers.
-
-