def open_new_tab(self, *data): self._notebook.set_show_tabs(True) terminal = TattooTerminal(self) terminal.index = self._notebook.append_page(terminal, terminal.get_title()) self.show_all()
def _setup_view(self): self.notebook = Gtk.Notebook() self.add(self.notebook) self._headerbar = TattooHeaderBar(self) self.set_titlebar(self._headerbar) terminal = TattooTerminal(self) terminal.index = self.notebook.append_page(terminal, terminal.get_title()) self.notebook.set_show_tabs(False) self.notebook.connect("switch-page", self.header_title_change) self.connect("destroy", self.on_destroy)
def _setup_view(self): self.notebook = Gtk.Notebook() self.add(self.notebook) self._headerbar = TattooHeaderBar(self) self.set_titlebar(self._headerbar) terminal = TattooTerminal(self) terminal.index = self.notebook.append_page(terminal, terminal.get_title()) self.notebook.set_show_tabs(False) self.notebook.connect( "switch-page", self.header_title_change) self.connect("destroy", self.on_destroy)