示例#1
0
文件: TabView.py 项目: tomihasa/pygui
    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)
示例#2
0
文件: TabView.py 项目: tomihasa/pygui
 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)
示例#3
0
文件: TabView.py 项目: tomihasa/pygui
    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)