示例#1
0
 def __init__(self, parent=None, size=(700, 450),
              title=None, **kws):
     if title is None:
         title = '2D Plot Frame'
     BaseFrame.__init__(self, parent=parent,
                        title  = title,
                        size=size, **kws)
     self.BuildFrame()
示例#2
0
    def __init__(self, parent=None, size=(550, 450),
                 config_on_frame=True, lasso_callback=None,
                 show_xsections=True,
                 output_title='Image',   **kws):

        self.config_on_frame = config_on_frame
        self.lasso_callback = lasso_callback
        BaseFrame.__init__(self, parent=parent,
                           title  = 'Image Display Frame',
                           size=size, **kws)
        self.BuildFrame(show_xsections=show_xsections)
示例#3
0
    def __init__(self, parent=None, rows=1,cols=1,
                 framesize=(600,350),
                 panelsize=(4.0,3.20), **kws):

        BaseFrame.__init__(self, parent=parent,
                           title  = '2D Plot Array Frame',
                           size=framesize, **kws)
        self.panels = {}
        self.rows = rows
        self.cols = cols
        self.panelsize = panelsize
        self.current_panel = (0,0)
        self.BuildFrame()
示例#4
0
    def __init__(self, parent=None, rows=1,cols=1,
                 framesize=(600,350),
                 panelsize=(4.0,3.20),dpi=96,
                 exit_callback=None, **kwds):
        self.exit_callback = exit_callback
        self.title  = '2D Plot Array Frame'
        self.panels = {}
        self.rows = rows
        self.cols = cols
        self.current_panel = (0,0)        
        for i in range(rows):
            for j in range(cols):
                self.panels[(i,j)] = PlotPanel(self, parent,
                                               size=panelsize,  dpi=dpi)
                self.panels[(i,j)].messenger = self.write_message

        self.panel = self.panels[(0,0)]
        BaseFrame.__init__(self,parent=parent, panel=None, size=framesize)        

        self.BuildFrame(size=framesize, **kwds)
示例#5
0
 def __init__(self, parent=None, size=(700,450), exit_callback=None, **kwds):
     self.exit_callback = exit_callback
     self.title  = '2D Plot Frame'
     self.panel = PlotPanel(self, parent)
     BaseFrame.__init__(self,parent=parent, panel=self.panel, size=size)
     self.BuildFrame(size=size, **kwds)