def get_view(elements, cb, thememanager):
dbo = ElementListView(elements = elements, selectedCallBack = cb, thememanager = thememanager)
table_view = ui.TableView()
table_view.name = 'Elements'
table_view.data_source = dbo
table_view.delegate = dbo
table_view.background_color = thememanager.main_background_colour
return table_view
评论列表
文章目录