Ejemplo n.º 1
0
    def __init__(self, title, masterWindow=None, weight=True, minsize=(900, 500),
                 icon=Icon.SCIPION_ICON, **kwargs):
        Window.__init__(self, title, masterWindow, weight=weight, 
                        icon=icon, minsize=minsize, enableQueue=True, **kwargs)
        
        content = tk.Frame(self.root)
        content.columnconfigure(0, weight=1)
        content.rowconfigure(1, weight=1)
        content.grid(row=0, column=0, sticky='news')
        self.content = content

        if getattr(self, 'menuCfg', None):
            Window.createMainMenu(self, self.menuCfg)
        
        self.header = self.createHeaderFrame(content)
        self.header.grid(row=0, column=0, sticky='new')
        
        self.footer = tk.Frame(content, bg='white')
        self.footer.grid(row=1, column=0, sticky='news') 
        
        self.view, self.viewWidget = None, None
        
        self.viewFuncs = {VIEW_PROJECTS: ProjectsView,
                          VIEW_PROTOCOLS: ProtocolsView,
                          VIEW_DATA: ProjectDataView,
                          }
Ejemplo n.º 2
0
 def __init__(self, title, masterWindow=None, weight=True, minsize=(900, 500),
              icon="scipion_bn.xbm", **args):
     Window.__init__(self, title, masterWindow, weight=weight, 
                     icon=icon, minsize=minsize, enableQueue=True)
     
     content = tk.Frame(self.root)
     content.columnconfigure(0, weight=1)
     content.rowconfigure(1, weight=1)
     content.grid(row=0, column=0, sticky='news')
     self.content = content
     
     Window.createMainMenu(self, self.menuCfg)
     
     self.header = self.createHeaderFrame(content)
     self.header.grid(row=0, column=0, sticky='new')
     
     self.footer = tk.Frame(content, bg='white')
     self.footer.grid(row=1, column=0, sticky='news') 
     
     self.view, self.viewWidget = None, None
     
     self.viewFuncs = {VIEW_PROJECTS: ProjectsView,
                       VIEW_PROTOCOLS: ProtocolsView,
                       VIEW_DATA: ProjectDataView,
                       }