__main__.py 文件源码

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

项目:duck-feed 作者: h0m3stuck 项目源码 文件源码
def create_feed_entry(title, url, description):
    container = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
    title_label = Gtk.Label(title)
    link_button = Gtk.LinkButton(url, url)
    description_view = WebKit2.WebView()
    description_view.set_size_request(400, 400)
    description_view.load_html(description)
    container.add(title_label)
    container.add(link_button)
    container.add(description_view)
    container.show()
    title_label.show()
    link_button.show()
    description_view.show()
    return container
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号