Package wx :: Package lib :: Package floatcanvas :: Module FloatCanvas :: Class TextObjectMixin
[frames | no frames]

Class TextObjectMixin

XYObjectMixin --+
                |
               TextObjectMixin

Known Subclasses:
Bitmap, ScaledBitmap, ScaledBitmap2, ScaledText, ScaledTextBox, Text

A mix in class that holds attributes and methods that are needed by the Text objects


Method Summary
  LayoutText(self)
A dummy method to re-do the layout of the text.
  SetBackgroundColor(self, BackgroundColor)
  SetColor(self, Color)
  SetFont(self, Size, Family, Style, Weight, Underlined, FaceName)
  SetText(self, String)
Re-sets the text displayed by the object

Class Variable Summary
dict FontList = {}
int LayoutFontSize = 16                                                                    
dict ShiftFunDict = {'cl': <function <lambda> at 0x23e4488>, ...

Method Details

LayoutText(self)

A dummy method to re-do the layout of the text.

A derived object needs to override this if required.

SetText(self, String)

Re-sets the text displayed by the object

In the case of the ScaledTextBox, it will re-do the layout as appropriate

Note: only tested with the ScaledTextBox


Class Variable Details

FontList

Type:
dict
Value:
{}                                                                     

LayoutFontSize

Type:
int
Value:
16                                                                    

ShiftFunDict

Type:
dict
Value:
{'bc': <function <lambda> at 0x23e4668>,
 'bl': <function <lambda> at 0x23e45f0>,
 'br': <function <lambda> at 0x23e46e0>,
 'cc': <function <lambda> at 0x23e4500>,
 'cl': <function <lambda> at 0x23e4488>,
 'cr': <function <lambda> at 0x23e4578>,
 'tc': <function <lambda> at 0x23e4398>,
 'tl': <function <lambda> at 0x23e4320>,
...                                                                    

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