Ejemplo n.º 1
0
 def addProjectTab(self):
     """
     Display a welcome tab if nothing is opened
     """
     pm = get_applet(identifier='ProjectManager')
     if pm:
         actions = [pm.actionNewProj, pm.actionOpenProj]
         welcomePage = WelcomePage(actions=actions, parent=self.parent())
         self.addTab(welcomePage, "Welcome")
Ejemplo n.º 2
0
 def addCreateFileTab(self):
     """
     Display a tab to select type of file that you can create
     """
     if self.paradigms_actions:
         page = WelcomePage(actions=self.paradigms_actions)
         self.addTab(page, "Create File")
     else:
         self.addProjectTab()
     self.rmTab("Welcome")