def add_editor(self, label): self.new_editor = edit_win.edit_window() new_label = gtk.Label(label) # ~ self.append_page(self.new_editor, new_label) #son los tab de arriba # ~ print(self.query_tab_label_packing(new_editor)) hbox = self.createButton(label) hbox.show_all() # the tab will have a single widget: a label # add the tab self.insert_page(self.new_editor, hbox) # widget + tabLabel # ~ self.add(self.new_editor, hbox) return self.new_editor
def add_editor(self, label): self.new_editor = edit_win.edit_window() new_label = gtk.Label(label) #~ self.append_page(self.new_editor, new_label) #son los tab de arriba #~ print(self.query_tab_label_packing(new_editor)) hbox=self.createButton("Nuevo") hbox.show_all() #the tab will have a single widget: a label #add the tab self.insert_page(self.new_editor, hbox) return self.new_editor
def add_editor(self, label): new_editor = edit_win.edit_window() new_label = gtk.Label(label) self.append_page(new_editor, new_label) return new_editor