Package papyon :: Module conversation :: Class TextFormat

Class TextFormat

source code

object --+
         |
        TextFormat

Instance Methods
 
__init__(self, font='MS Sans Serif', style=0, color='0', charset='1', family=0, pitch=0, right_alignment=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods
 
parse(format) source code
Class Variables
  DEFAULT_FONT = 'MS Sans Serif'
  NO_EFFECT = 0
  BOLD = 1
  ITALIC = 2
  UNDERLINE = 4
  STRIKETHROUGH = 8
  ANSI_CHARSET = '0'
  DEFAULT_CHARSET = '1'
  SYMBOL_CHARSET = '2'
  MAC_CHARSETLT = '4d'
  SHIFTJIS_CHARSET = '80'
  HANGEUL_CHARSET = '81'
  JOHAB_CHARSET = '82'
  GB2312_CHARSET = '86'
  CHINESEBIG5_CHARSET = '88'
  GREEK_CHARSET = 'a1'
  TURKISH_CHARSET = 'a2'
  VIETNAMESE_CHARSET = 'a3'
  HEBREW_CHARSET = 'b1'
  ARABIC_CHARSET = 'b2'
  BALTIC_CHARSET = 'ba'
  RUSSIAN_CHARSET_DEFAULT = 'cc'
  THAI_CHARSET = 'de'
  EASTEUROPE_CHARSET = 'ee'
  OEM_DEFAULT = 'ff'
  FF_DONTCARE = 0
  FF_ROMAN = 1
  FF_SWISS = 2
  FF_MODERN = 3
  FF_SCRIPT = 4
  FF_DECORATIVE = 5
  DEFAULT_PITCH = 0
  FIXED_PITCH = 1
  VARIABLE_PITCH = 2
Properties
  font
  style
  color
  right_alignment
  charset
  pitch
  family

Inherited from object: __class__

Method Details

__init__(self, font='MS Sans Serif', style=0, color='0', charset='1', family=0, pitch=0, right_alignment=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details

font

Get Method:
unreachable.font(self)

style

Get Method:
unreachable.style(self)

color

Get Method:
unreachable.color(self)

right_alignment

Get Method:
unreachable.right_alignment(self)

charset

Get Method:
unreachable.charset(self)

pitch

Get Method:
unreachable.pitch(self)

family

Get Method:
unreachable.family(self)