gpg_utils.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:ez_gpg 作者: sgnn7 项目源码 文件源码
def add_gpg_keys_to_combo_box(combo_box, secret=False):
        gpg_keys_list = Gtk.ListStore(str, str)
        for key in GpgUtils.get_gpg_keys(secret):
            key_id = key[0]
            key_name = key[1]
            gpg_keys_list.append([key_id, key_name])

        cell = Gtk.CellRendererText()
        combo_box.pack_start(cell, True)
        combo_box.add_attribute(cell, 'text', 1)

        combo_box.set_model(gpg_keys_list)
        combo_box.set_entry_text_column(1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号