コード例 #1
0
ファイル: axis.py プロジェクト: niamul070/chaco
 def __init__(self, component=None, **kwargs):
     # TODO: change this back to a factory in the instance trait some day
     self.tick_generator = DefaultTickGenerator()
     # Override init so that our component gets set last.  We want the
     # _component_changed() event handler to get run last.
     super(PlotAxis, self).__init__(**kwargs)
     if component is not None:
         self.component = component
コード例 #2
0
 def __init__(self, **traits):
     # TODO: change this back to a factory in the instance trait some day
     self.tick_generator = DefaultTickGenerator()
     super(PlotGrid, self).__init__(**traits)
     self.bgcolor = "none"  #make sure we're transparent
     return