Ejemplo n.º 1
0
 def setRole(self, role):
   ''' Called by the style editing mechanism when the user changes the role. 
       The role is here only the user-determined part, and does not include the
       hard-coded part from ROLE.'''
   self.details.style_role = role
   Block.setRole(self, role)
   self.applyStyle()
Ejemplo n.º 2
0
 def __init__(self, style, rep_details, block_details):
   self.details = rep_details
   self.block_details = block_details
   Block.__init__(self, rep_details, style, self.details.style_role, block_details.Name)
   self.applyStyle()
Ejemplo n.º 3
0
 def __init__(self, style, details):
   # TODO: Take into account the anchor position
   self.details = details
   Block.__init__(self, details, style, details.style_role, details.Description)
   self.applyStyle()