def add_item(self, v, title = None): _ns_tabview = self._ns_view _ns_tabview_item = self._create_ns_tabview_item(v, title) GTabView.add_item(self, v, title) _ns_tabview.addTabViewItem_(_ns_tabview_item) child_bounds = self._get_content_bounds() v.bounds = child_bounds
def add_item(self, v, title=None): GTabView.add_item(self, v, title) _gtk_notebook = self._gtk_inner_widget _tab_label = None if title: _tab_label = gtk.Label(title) _tab_label.show() index = _gtk_notebook.append_page(v._gtk_inner_widget, tab_label=_tab_label)
def add_item(self, v, title = None): i = len(self.items) self._insert_item_at(v, i, title) GTabView.add_item(self, v, title)