'The on_new_terminal_button redirects here from the application.
The scrolled_window will be a scrolled window containing only a VTE
terminal.'

def new_tab(self, scrolled_window):

    terminal = scrolled_window.get_children()[0]
    terminal.connect('child_exited', self.on_terminal_exit)
    self.tab_number += 1
    pageN = self.create_event_box(scrolled_window)
    self.notebook.append_page(pageN, Gtk.Label(str((self.tab_number + 1))))
    self.notebook.show_all()
