Table Of Contents

Previous topic

stattext

Next topic

throbber

This Page

phoenix_title GenStaticText


class_hierarchy Inheritance Diagram

Inheritance diagram for class GenStaticText

Inheritance diagram of GenStaticText


super_classes Known Superclasses

PyControl


method_summary Methods Summary

__init__  
AcceptsFocus Overridden base class virtual.
Disable Overridden Disable() method to properly refresh the widget.
DoGetBestSize Overridden base class virtual. Determines the best size of
Enable Overridden Enable() method to properly refresh the widget.
GetDefaultAttributes Overridden base class virtual. By default we should use
OnEraseBackground  
OnPaint  
SetFont Sets the static text font and updates the control’s size to exactly
SetLabel Sets the static text label and updates the control’s size to exactly
ShouldInheritColours Overridden base class virtual. If the parent has non-default

api Class API



class GenStaticText(PyControl)

Methods



__init__(self, parent, ID=-1, label="", pos=DefaultPosition, size=DefaultSize, style=0, name="genstattext")


AcceptsFocus(self)

Overridden base class virtual.



Disable(self)

Overridden Disable() method to properly refresh the widget.



DoGetBestSize(self)

Overridden base class virtual. Determines the best size of the control based on the label size and the current font.



Enable(self, enable=True)

Overridden Enable() method to properly refresh the widget.



GetDefaultAttributes(self)

Overridden base class virtual. By default we should use the same font/colour attributes as the native StaticText.



OnEraseBackground(self, event)


OnPaint(self, event)


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.



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.



ShouldInheritColours(self)

Overridden base class virtual. If the parent has non-default colours then we want this control to inherit them.