def _create_sidebar(self, bufferview, pluginview): sidebar_horiz = self.__manager.opt('layout', 'vertical_sidebar_split') if sidebar_horiz: box = gtk.HPaned() else: box = gtk.VPaned() bar = gtk.VBox() box.pack1(bar, resize=True) bufs = expander.expander() bufs.set_body_widget(bufferview) l = gtk.Label('Buffer list') l.set_alignment(0, 0.5) bufs.set_label_widget(l) bufs.expand() bar.pack_start(bufs, expand=True) bar.pack_start(pluginview) bar2 = gtk.VBox() box.pack2(bar2, resize=True) vb = self.__viewbooks['language'] = contentbook.contentbook( 'Languages') bar2.pack_start(vb) vb.collapse() vb = self.__viewbooks['content'] = contentbook.contentbook( 'Quick View') bar2.pack_start(vb) vb.collapse() return box
def _create_sidebar(self, bufferview, pluginview): sidebar_horiz = self.__manager.opt('layout', 'vertical_sidebar_split') if sidebar_horiz: box = gtk.HPaned() else: box = gtk.VPaned() bar = gtk.VBox() box.pack1(bar, resize=True) bufs = expander.expander() bufs.set_body_widget(bufferview) l = gtk.Label('Buffer list') l.set_alignment(0, 0.5) bufs.set_label_widget(l) bufs.expand() bar.pack_start(bufs, expand=True) bar.pack_start(pluginview) bar2 = gtk.VBox() box.pack2(bar2, resize=True) vb = self.__viewbooks['language'] = contentbook.contentbook('Languages') bar2.pack_start(vb) vb.collapse() vb = self.__viewbooks['content'] = contentbook.contentbook('Quick View') bar2.pack_start(vb) vb.collapse() return box
def _create_sidebar(self, bufferview, pluginview): # Check wether the sidebar is horizontal or vertical sidebar_horiz = self.__manager.opt('layout', 'vertical_sidebar_split') if sidebar_horiz: box = gtk.HPaned() else: box = gtk.VPaned() # Now create the bar bar = gtk.VBox() bar.show() box.pack1(bar, resize=True) # Create the buffer list bufs = expander.expander() bufs.set_body_widget(bufferview) bufferview.show() bufs.show() # Create its label l = gtk.Label('Buffer list') l.show() l.set_alignment(0, 0.5) bufs.set_label_widget(l) # Expand it and add it to the bar bufs.expand() bar.pack_start(bufs, expand=True) # Now add the plugin view pluginview.show() bar.pack_start(pluginview) # Create the second part of the bar bar2 = gtk.VBox() bar2.show() box.pack2(bar2, resize=True) # Add the language view vb = self.__viewbooks['language'] = contentbook.contentbook('Languages') vb.show() bar2.pack_start(vb) vb.collapse() # And add the quick view vb = self.__viewbooks['content'] = contentbook.contentbook('Quick View') vb.show() bar2.pack_start(vb) vb.collapse() return box
def _create_sidebar(self, bufferview, pluginview): bar = gtk.VBox() bufs = expander.expander() bufs.set_body_widget(bufferview) l = gtk.Label('Buffer list') l.set_alignment(0, 0.5) bufs.set_label_widget(l) bufs.expand() bar.pack_start(bufs, expand=True) bar.pack_start(pluginview) vb = self.__viewbooks['language'] = contentbook.contentbook('Languages') bar.pack_start(vb) vb.collapse() vb = self.__viewbooks['content'] = contentbook.contentbook('Quick View') bar.pack_start(vb) vb.collapse() return bar
def _create_sidebar(self, bufferview, pluginview): bar = gtk.VBox() bufs = expander.expander() bufs.set_body_widget(bufferview) l = gtk.Label('Buffer list') l.set_alignment(0, 0.5) bufs.set_label_widget(l) bufs.expand() bar.pack_start(bufs, expand=True) bar.pack_start(pluginview) vb = self.__viewbooks['language'] = contentbook.contentbook( 'Languages') bar.pack_start(vb) vb.collapse() vb = self.__viewbooks['content'] = contentbook.contentbook( 'Quick View') bar.pack_start(vb) vb.collapse() return bar
def _create_sidebar(self, bufferview, pluginview, languageview): # Check wether the sidebar is horizontal or vertical sidebar_horiz = self.__manager.opt('layout', 'vertical_sidebar_split') if sidebar_horiz: box = gtk.HPaned() else: box = gtk.VPaned() # Now create the bar bar = gtk.VBox() bar.show() box.pack1(bar, resize=True) # Create the buffer list bufs = expander.expander() bufs.set_body_widget(bufferview) bufferview.show() bufs.show() # Create its label l = gtk.Label('Buffer list') l.show() l.set_alignment(0, 0.5) bufs.set_label_widget(l) # Expand it and add it to the bar bufs.expand() bar.pack_start(bufs, expand=True) # Now add the plugin view pluginview.show() bar.pack_start(pluginview) # Create the second part of the bar bar2 = gtk.VBox() bar2.show() box.pack2(bar2, resize=True) # Add the language view vb = self.__viewbooks['languages'] = languageview vb.show() vb.collapse() bar2.pack_start(vb, expand=False) # And add the quick view vb = self.__viewbooks['content'] = contentbook.contentbook( 'Quick View') vb.show() bar2.pack_start(vb) vb.collapse() return box