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