def remove_item(self, v): GTabView.remove_item(self, v) _gtk_notebook = self._gtk_inner_widget page_num = _gtk_notebook.page_num(v._gtk_inner_widget) if page_num >= 0: _gtk_notebook.remove_page(page_num)
def remove_item(self, v): i = self.items.index(v) _tab_ctrl = self._win GTabView.remove_item(self, v) gui.SendMessage(_tab_ctrl.GetSafeHwnd(), cc.TCM_DELETEITEM, i, 0)
def remove_item(self, v): GTabView.remove_item(self, v) _ns_tabview = self._ns_view item = v._ns_tabview_item idx = _ns_tabview.indexOfTabViewItem_(item) count = _ns_tabview.numberOfTabViewItems() if idx >= 0 and idx < count: _ns_tabview.removeTabViewItem_(item) self.tab_changed(self.selected_index)