def add_apps(self):
"""
Add database applications to the Gtk.ListBox
"""
self.db = sorted(self.db, key=lambda k: k['name'].lower())
logging.debug("Application list was ordered alphabetically")
for app in self.db:
img_path = app["img"]
app_name = app["name"]
self.listbox.add(ApplicationRow(app_name, img_path))
if len(self.db) != 0:
self.listbox.select_row(self.listbox.get_row_at_index(0))
add_account.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录