

def initialize_from_shape(self, shape, line=True, fill=True, font=True):
    if line:
        self.set_line_from_shape(shape)
    if fill:
        self.set_fill_from_shape(shape)
    if font:
        self.set_font_from_shape(shape)

dataset/ETHPy150Open ejeschke/ginga/ginga/cvw/CanvasRenderCv.py RenderContext.initialize_from_shape/original