Package wx :: Package lib :: Module stattext :: Class GenStaticText
[frames | no frames]

Type GenStaticText

object --+                    
         |                    
    Object --+                
             |                
    EvtHandler --+            
                 |            
            Window --+        
                     |        
               Control --+    
                         |    
                 PyControl --+
                             |
                            GenStaticText

Known Subclasses:
HyperLinkCtrl

Method Summary
  __init__(self, parent, ID, label, pos, size, style, name)
  AcceptsFocus(self)
Overridden base class virtual.
  Disable(self)
Overridden Disable() method to properly refresh the widget.
  DoGetBestSize(self)
Overridden base class virtual.
  Enable(self, enable)
Overridden Enable() method to properly refresh the widget.
  GetDefaultAttributes(self)
Overridden base class virtual.
  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.

Property Summary

Class Variable Summary
int labelDelta = 1                                                                     

Instance Method Details

AcceptsFocus(self)

Overridden base class virtual.

Overrides:
wx.Window.AcceptsFocus

Disable(self)

Overridden Disable() method to properly refresh the widget.

Overrides:
wx.Window.Disable

DoGetBestSize(self)

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

Overrides:
wx.PyControl.DoGetBestSize

Enable(self, enable=True)

Overridden Enable() method to properly refresh the widget.

Overrides:
wx.Window.Enable

GetDefaultAttributes(self)

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

Overrides:
wx.PyControl.GetDefaultAttributes

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.

Overrides:
wx.Window.SetFont

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.

Overrides:
wx.Window.SetLabel

ShouldInheritColours(self)

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

Overrides:
wx.Window.ShouldInheritColours

Class Variable Details

labelDelta

Type:
int
Value:
1                                                                     

Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:51:33 2009 http://epydoc.sf.net