def __init__(self, params): # setup defaults ... defs = PropertyTree() defs.x = 0.0 defs.y = 0.0 defs.vz = "left" defs.hz = "bottom" CanvasItem.__init__(self, params, defs)
def __init__(self,params): # setup defaults ... defs = PropertyTree() defs.x = 0.0 defs.y = 0.0 defs.vz = "left" defs.hz = "bottom" CanvasItem.__init__(self,params,defs)
def __init__(self,params): # setup defaults ... defs = PropertyTree() defs.font.size = 12 defs.font.name = "Times New Roman" defs.font.bold = False defs.font.ital = False defs.color = (255,255,255,255) defs.vz = "left" defs.hz = "top" defs.orient = "hz" defs.wrap = -1 CanvasItem.__init__(self,params,defs) self.params.lock()
def __init__(self, params): # setup defaults ... defs = PropertyTree() defs.font.size = 12 defs.font.name = "Times New Roman" defs.font.bold = False defs.font.ital = False defs.color = (255, 255, 255, 255) defs.vz = "left" defs.hz = "top" defs.orient = "hz" defs.wrap = -1 CanvasItem.__init__(self, params, defs) self.params.lock()