def __init__(self, *args, **kwargs):
     """Initializer.
     """
     VisualizerPage.__init__(self, *args, **kwargs)
     tree = Hdf5TreeCtrl(self, -1, selection_callback=self.on_tree_select)
     self.sizer.Add(tree, 1, wx.ALL|wx.EXPAND, 5)
     self.tree = tree
 def __init__(self, *args, **kwargs):
     """Initializer.
     """
     VisualizerPage.__init__(self, *args, **kwargs)
     tree = Hdf5TreeCtrl(self, -1, selection_callback=self.on_tree_select)
     self.sizer.Add(tree, 1, wx.ALL | wx.EXPAND, 5)
     self.tree = tree
 def __init__(self, *args, **kwargs):
     """
     """
     VisualizerPage.__init__(self, *args, **kwargs)
     figure = Figure()
     figure.add_subplot("111")
     canvas = FigureCanvasWxAgg(self, -1, figure)
     self.sizer.Add(canvas, 1, wx.ALL | wx.EXPAND, 5)
     self.figure = figure
     self.canvas = canvas
 def __init__(self, *args, **kwargs):
     """
     """
     VisualizerPage.__init__(self, *args, **kwargs)
     figure = Figure()
     figure.add_subplot('111')
     canvas = FigureCanvasWxAgg(self, -1, figure)
     self.sizer.Add(canvas, 1, wx.ALL | wx.EXPAND, 5)
     self.figure = figure
     self.canvas = canvas
Exemple #5
0
 def __init__(self, *args, **kwargs):
     """Initializer.
     """
     aspect_ratio = kwargs.pop('aspect_ratio', (4, 3))
     VisualizerPage.__init__(self, *args, **kwargs)
     RenderWindowMixin.__init__(self, aspect_ratio=aspect_ratio)
     # XXX dirty! XXX Inject RenderEvent callback 
     self.render_window._Iren.AddObserver('RenderEvent', self.ObserverRenderEventHandler)
     # bind default renderer
     default_renderer = getattr(self.target, 'renderer')
     if default_renderer:
         self.add_renderer(default_renderer)
         self.render_window.Enable(True)
Exemple #6
0
 def __init__(self, *args, **kwargs):
     """Initializer.
     """
     aspect_ratio = kwargs.pop('aspect_ratio', (4, 3))
     VisualizerPage.__init__(self, *args, **kwargs)
     RenderWindowMixin.__init__(self, aspect_ratio=aspect_ratio)
     # XXX dirty! XXX Inject RenderEvent callback
     self.render_window._Iren.AddObserver('RenderEvent',
                                          self.ObserverRenderEventHandler)
     # bind default renderer
     default_renderer = getattr(self.target, 'renderer')
     if default_renderer:
         self.add_renderer(default_renderer)
         self.render_window.Enable(True)