docs/widget.rst
changeset 5 ae128c885d0f
parent 2 684cdc352562
child 12 bb7d41be0c44
equal deleted inserted replaced
4:d197ca00496f 5:ae128c885d0f
    10 Class attributes
    10 Class attributes
    11 ----------------
    11 ----------------
    12 
    12 
    13 .. attribute:: Widget.parent
    13 .. attribute:: Widget.parent
    14 
    14 
       
    15    Parrent widget.
       
    16 
       
    17 
    15 .. attribute:: Widget.top
    18 .. attribute:: Widget.top
    16 
    19 
       
    20    Top widget (same for every widget in one application).
       
    21 
       
    22 
    17 .. attribute:: Widget.x
    23 .. attribute:: Widget.x
       
    24                Widget.y
    18 
    25 
    19 .. attribute:: Widget.y
    26    Position inside parent widget. Modified by layout manager.
       
    27 
    20 
    28 
    21 .. attribute:: Widget.width
    29 .. attribute:: Widget.width
       
    30                Widget.height
    22 
    31 
    23 .. attribute:: Widget.height
    32    Actual size. Modified by layout manager.
       
    33 
       
    34 
       
    35 .. attribute:: Widget.sizemin
       
    36 
       
    37    Minimal size of widget. Under normal circumstances, widget will never be sized smaller than this.
       
    38    Tuple (w, h). Both must be integers >= 1.
       
    39 
       
    40 
       
    41 .. attribute:: Widget.sizemax
       
    42 
       
    43    Maximum size of widget. Widget will never be sized bigger than this.
       
    44    Tuple (w, h). Integers >= 1 or None (meaning no maximum size or infinite).
       
    45 
       
    46 
       
    47 .. attribute:: Widget.sizereq
       
    48 
       
    49    Size request. This is default size of the widget. Will be fulfilled if possible.
       
    50    Tuple (w, h). Integers >= 1 or None (meaning use minumal size).
       
    51 
    24 
    52 
    25 .. attribute:: Widget.hidden
    53 .. attribute:: Widget.hidden
    26 
    54 
       
    55    Hidden widget does not affect layout.
       
    56 
       
    57 
    27 .. attribute:: Widget.allowlayout
    58 .. attribute:: Widget.allowlayout
       
    59 
       
    60    When false, the widget is not considered in layout.
       
    61 
       
    62 
       
    63 .. attribute:: Widget.layouthints
       
    64 
       
    65    Dictionary containing optional parameters for layout managers.
    28 
    66 
    29 
    67 
    30 Event management
    68 Event management
    31 ----------------
    69 ----------------
    32 
    70