Example #1
0
 def __init__(self, *args, **kargs):
     kargs['style'] = (wx.FRAME_FLOAT_ON_PARENT | wx.MINIMIZE_BOX
                       | wx.MAXIMIZE_BOX | wx.RESIZE_BORDER
                       | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX
                       | wx.CLIP_CHILDREN)
     #        print kargs
     BookViewer.__init__(self, *args, **kargs)
     f_page = self.get_page(0)
     f_page.set_section(2)
     f_axes = self.get_axes(0, 0)
     for name, child in f_axes.get_children():
         child.destroy()
     obj = FigPlot([0], [0])
     f_axes.add_child('xslice_plot1', obj)
     obj.set_suppress(True)
     obj = FigPlot([0], [0])
     f_axes.add_child('xslice_plot2', obj)
     obj.set_suppress(True)
     f_axes.realize()
     f_axes = self.get_axes(0, 1)
     for name, child in f_axes.get_children():
         child.destroy()
     obj = FigPlot([0], [0])
     f_axes.add_child('xslice_plot1', obj)
     obj.set_suppress(True)
     obj = FigPlot([0], [0])
     f_axes.add_child('xslice_plot2', obj)
     obj.set_suppress(True)
     f_axes.realize()
Example #2
0
 def __init__(self, *args, **kargs):
     BookViewer.__init__(self, *args, **kargs)
     extra_menu = wx.Menu()
     self.menuBar.Insert(self.menuBar.GetMenuCount() - 1, extra_menu,
                         "ExtraMenu")
     self.add_menu(extra_menu, wx.ID_ANY, "Plot Something...",
                   "plot sine wave (this is string for status bar)",
                   self.onPlotSomething)
Example #3
0
 def __init__(self, *args, **kwargs):
     VideoViewerMode.__init__(self, *args, **kwargs)
     BookViewer.__init__(self, *args, **kwargs)
Example #4
0
 def __init__(self, *args, **kwargs):
     VideoViewerMode.__init__(self, *args, **kwargs)
     BookViewer.__init__(self, *args, **kwargs)