예제 #1
0
 def addToNotebook(self, notebook, threadBlock=True, focused=True):
     """
     @summary: Add tab to notebook.
     @param notebook: Notebook where tab will be added.
     @param threadBlock: True for block gtk loop.
     @param focused: True for focus tab when will be added.   
     """
     self.__notebook__ = notebook
     UIUtils.addTabControl(notebook,
                           self.__scroll__,
                           self.__tabWidget__,
                           doGObject=threadBlock)
     if (focused):
         self.__notebook__.set_current_page(self.__notebook__.page_num(self.__scroll__))