bracer.py 文件源码

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

项目:bracer 作者: deikatsuo 项目源码 文件源码
def create_version_view(self, label, version):
        custom = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL,
                         spacing=12,
                         expand=True,
                         visible=True)

        title = Gtk.Label(halign='start', expand=True, visible=True, label=label)
        subtitle = Gtk.Label(halign='start', expand=True, visible=True)
        subtitle.get_style_context().add_class('dim-label')
        subtitle.set_markup(version)

        vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, expand=True, visible=True)
        vbox.pack_start(title, True, True, 0)
        vbox.pack_start(subtitle, True, True, 0)

        custom.pack_start(vbox, True, True, 0)

        pack = Gtk.Box(orientation=Gtk.Orientation.VERTICAL,
                       spacing=6,
                       expand=True,
                       visible=True)

        pack.pack_start(custom, True, True, 0)

        return pack
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号