(self, widget=None, debugtab=False, _param1=None, _param2=None)
return self.get_child().newtab(debugtab, cwd=cwd, profile=profile)
Make a new tab
Make a new tab
Make a new tab
def tab_new(self, widget=None, debugtab=False, _param1=None, _param2=None):
        """Make a new tab"""
        if self.is_zoomed():
            self.unzoom()

        cwd = None
        profile = None

        if widget:
            cwd = widget.get_cwd()
            profile = widget.get_profile()

        maker = Factory()
        if not self.is_child_notebook():
            dbg('Making a new Notebook')
            notebook = maker.make('Notebook', window=self)
        self.show()
        self.present()
        return self.get_child().newtab(debugtab, cwd=cwd, profile=profile)
def tab_new ( self , widget = None , debugtab = False , _param1 = None , _param2 = None ) : if self . is_zoomed ( ) : self . unzoom ( ) cwd = None profile = None if widget : cwd = widget . get_cwd ( ) profile = widget . get_profile ( ) maker = Factory ( ) if not self . is_child_notebook ( ) : dbg ( 'Making a new Notebook' ) notebook = maker . make ( 'Notebook' , window = self ) self . show ( ) self . present ( ) return self . get_child ( ) . newtab ( debugtab , cwd = cwd , profile = profile )