示例#1
0
 def create_notebook_content(self, beans, optimization=False):
     treeview = PlaylistTreeControl(self.controls)
     if beans: 
         if optimization:
             treeview.simple_append_all(beans)
         else:
             treeview.append_all(beans)
     return treeview
示例#2
0
 def create_notebook_tab(self, beans, optimization=False):
     treeview = PlaylistTreeControl(self.controls)
     self.set_active_tree(treeview)
     if beans: 
         if optimization:
             treeview.simple_append_all(beans)
         else:
             treeview.append_all(beans)
     treeview.scroll.show_all()
     return  treeview.scroll
示例#3
0
 def create_notebook_tab(self, beans, optimization=False):
     treeview = PlaylistTreeControl(self.controls)
     if beans:
         if optimization:
             treeview.simple_append_all(beans)
         else:
             treeview.append_all(beans)
     treeview.scroll.show_all()
     return treeview.scroll