docs/widget.rst
author Radek Brich <radek.brich@devl.cz>
Thu, 08 Sep 2011 10:13:55 +0200
changeset 12 bb7d41be0c44
parent 5 ae128c885d0f
child 13 19ebde2fd594
permissions -rw-r--r--
Update EventSource documentation.

Widget
======

.. toctree::
   :maxdepth: 2

   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

   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:: 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.