 wx.lib.floatcanvas.FCObjects.Text
  wx.lib.floatcanvas.FCObjects.Text
Draws a text object
The size is fixed, and does not scale with the drawing.
The hit-test is done on the entire text extent
 Class Hierarchy
 Class Hierarchy

Inheritance diagram for class 
Text:
 
 
 Methods Summary
 Methods Summary
 
 Class API
 Class API
- 
class Text(TextObjectMixin, DrawObject)
- Draws a text object - The size is fixed, and does not scale with the drawing. - The hit-test is done on the entire text extent 
 - Methods
 
 - 
- 
__init__(self, String, xy, Size =  14, Color = "Black", BackgroundColor = None, Family = wx.FONTFAMILY_MODERN, Style = wx.FONTSTYLE_NORMAL, Weight = wx.FONTWEIGHT_NORMAL, Underlined = False, Position = 'tl', InForeground = False, Font = None)
- Default class constructor. - 
| Parameters: | 
string (string) – the text to drawXY – the (x, y) coordinate of the corner of the text, or a 2-tuple,
or a (2,) NumPy arraySize – the font sizeColor – see SetColorBackgroundColor – see SetColorFamily (FontFamily) – a valid   wx.FontFamilyStyle (FontStyle) – a valid   wx.FontStyleWeight (FontWeight) – a valid   wx.FontWeightUnderlined (boolean) – underline the textPosition (string) – a two character string indicating where in
relation to the coordinates the box should be orientedInForeground (boolean) – should object be in foregroundFont (wx.Font) – alternatively you can define   wx.Font and the
above will be ignored.
| 1st character | Meaning | 
|---|
 | t | top |  | c | center |  | b | bottom |  
| 2nd character | Meaning | 
|---|
 | l | left |  | c | center |  | r | right | Font – a valid wx.FontInForeground – should object be in foreground | 
|---|