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
评论列表
文章目录