示例#1
0
 def _bind_views(self):
     self.contentview = contentbook.ContentBook()
     self.editorview = contentbook.ContentBook(show_tabs=False)
     self.bookview = contentbook.ContentBook()
     self.bookview.notebook.set_tab_pos(gtk.POS_TOP)
     self.externalview = window.external_book()
     self.pluginview = contentbook.ContentBook()
     self.__viewbooks = {'content': self.contentview,
                         'view': self.bookview,
                         'plugin': self.pluginview,
                         'edit': self.editorview,
                         'ext': self.externalview}
     self.menubar = self.__uim.get_toplevels(gtk.UI_MANAGER_MENUBAR)[0]
     self.toolbar = self.__uim.get_toplevels(gtk.UI_MANAGER_TOOLBAR)[0]
示例#2
0
 def _bind_views(self):
     self.languageview = contentbook.contentbook('Current File')
     self.contentview = contentbook.contentbook('Quick View')
     self.editorview = contentbook.Contentholder(show_tabs=False)
     self.bookview = contentbook.Contentholder()
     self.externalview = window.external_book()
     self.pluginview = contentbook.contentbook('Plugins')
     self.__viewbooks = {'content': self.contentview,
                         'view': self.bookview,
                         'plugin': self.pluginview,
                         'edit': self.editorview,
                         'ext': self.externalview,
                         'languages': self.languageview}
     self.bufferview = self.get_service('buffermanager').create_single_view()
     self.menubar = self.__uim.get_toplevels(gtk.UI_MANAGER_MENUBAR)[0]
     self.toolbar = self.__uim.get_toplevels(gtk.UI_MANAGER_TOOLBAR)[0]
示例#3
0
 def _bind_views(self):
     self.languageview = contentbook.contentbook('Current File')
     self.contentview = contentbook.contentbook('Quick View')
     self.editorview = contentbook.Contentholder(show_tabs=False)
     self.bookview = contentbook.Contentholder()
     self.externalview = window.external_book()
     self.pluginview = contentbook.contentbook('Plugins')
     self.__viewbooks = {
         'content': self.contentview,
         'view': self.bookview,
         'plugin': self.pluginview,
         'edit': self.editorview,
         'ext': self.externalview,
         'languages': self.languageview
     }
     self.bufferview = self.get_service(
         'buffermanager').create_single_view()
     self.menubar = self.__uim.get_toplevels(gtk.UI_MANAGER_MENUBAR)[0]
     self.toolbar = self.__uim.get_toplevels(gtk.UI_MANAGER_TOOLBAR)[0]