.. include:: headings.inc .. currentmodule:: lib.stattext .. highlight:: python .. _lib.stattext.GenStaticText: ========================================================================================================================================== |phoenix_title| **GenStaticText** ========================================================================================================================================== | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **GenStaticText** .. raw:: html

Inheritance diagram of GenStaticText

| |super_classes| Known Superclasses ================================== :class:`PyControl` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.stattext.GenStaticText.__init__` :meth:`~lib.stattext.GenStaticText.AcceptsFocus` Overridden base class virtual. :meth:`~lib.stattext.GenStaticText.Disable` Overridden Disable() method to properly refresh the widget. :meth:`~lib.stattext.GenStaticText.DoGetBestSize` Overridden base class virtual. Determines the best size of :meth:`~lib.stattext.GenStaticText.Enable` Overridden Enable() method to properly refresh the widget. :meth:`~lib.stattext.GenStaticText.GetDefaultAttributes` Overridden base class virtual. By default we should use :meth:`~lib.stattext.GenStaticText.OnEraseBackground` :meth:`~lib.stattext.GenStaticText.OnPaint` :meth:`~lib.stattext.GenStaticText.SetFont` Sets the static text font and updates the control's size to exactly :meth:`~lib.stattext.GenStaticText.SetLabel` Sets the static text label and updates the control's size to exactly :meth:`~lib.stattext.GenStaticText.ShouldInheritColours` Overridden base class virtual. If the parent has non-default ================================================================================ ================================================================================ | |api| Class API =============== .. class:: GenStaticText(PyControl) .. method:: __init__(self, parent, ID=-1, label="", pos=DefaultPosition, size=DefaultSize, style=0, name="genstattext") .. method:: AcceptsFocus(self) Overridden base class virtual. .. method:: Disable(self) Overridden Disable() method to properly refresh the widget. .. method:: DoGetBestSize(self) Overridden base class virtual. Determines the best size of the control based on the label size and the current font. .. method:: Enable(self, enable=True) Overridden Enable() method to properly refresh the widget. .. method:: GetDefaultAttributes(self) Overridden base class virtual. By default we should use the same font/colour attributes as the native StaticText. .. method:: OnEraseBackground(self, event) .. method:: OnPaint(self, event) .. method:: SetFont(self, font) Sets the static text font and updates the control's size to exactly fit the label unless the control has wx.ST_NO_AUTORESIZE flag. .. method:: SetLabel(self, label) Sets the static text label and updates the control's size to exactly fit the label unless the control has wx.ST_NO_AUTORESIZE flag. .. method:: ShouldInheritColours(self) Overridden base class virtual. If the parent has non-default colours then we want this control to inherit them.