Exemplo n.º 1
0
 def __init__(self, styles={}, parent=None, name=None):
     # Set default values.
     self.margin = (0, 0, 0, 0)
     self.padding = (0, 0, 0, 0)
     self.background = backgrounds.none()
     
     cascading_style.__init__(self, styles, parent, name)
Exemplo n.º 2
0
    def __init__(self, styles={}, parent=None):
        self.bold = None
        self.italic = None
        self.bold_italic = None
        
        cascading_style.__init__(self, styles, parent)

        self.__by_spec = { "normal": { "normal": self.regular,
                                       "bold": self.bold, },
                           "italic": { "normal": self.italic,
                                       "bold": self.bold_italic, } }
Exemplo n.º 3
0
    def __init__(self, styles={}, parent=None, name=None):
        # Set default values.
        self.font_weight = "normal"
        self.text_style = "normal"
        self.kerning = True
        self.char_spacing = 0
        self.color = colors.black
        self.text_transform = None
        self.hyphenator = None

        cascading_style.__init__(self, styles, parent, name)
Exemplo n.º 4
0
 def __init__(self, styles={}, parent=None, name=None):
     cascading_style.__init__(self, styles, parent, name)
Exemplo n.º 5
0
 def __init__(self, styles={}, parent=None, name=None):
     text_style.__init__(self, {}, None, None)
     box_style.__init__(self, {}, None, None)
     paragraph_style.__init__(self, {}, None, None)
     cascading_style.__init__(self, styles, parent, name)
Exemplo n.º 6
0
 def __init__(self, styles={}, parent=None, name=None):
     # Set default values.
     self.list_style = lists.none()
     self.text_align = "left"
     
     cascading_style.__init__(self, styles, parent, name)