Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. def tabselect(self, notebook, b, tab):
  2. new_tab=notebook.get_nth_page(tab)
  3. old_tab=notebook.get_nth_page(self.tab)
  4. self.tab = tab
  5. for c in self._dynamic_childs:
  6. if new_tab.__gtype__.name =='GtkSocket':
  7. w= new_tab.get_plug_window()
  8. if new_tab.get_id()==c:
  9. self.send_message(new_tab,w.xid,"Visible\0\0\0\0\0\0\0\0\0\0\0\0\0")
  10.  
  11. if old_tab.__gtype__.name =='GtkSocket':
  12. w= old_tab.get_plug_window()
  13. if old_tab.get_id()==c:
  14. self.send_message(old_tab,w.xid,"Hidden\0\0\0\0\0\0\0\0\0\0\0\0\0\0")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement