def build_contents(self):
""" Build the main UI display regions """
self.stack = Gtk.Stack()
self.box.pack_start(self.stack, True, True, 0)
button = Gtk.Button("Install")
lab_disclaimer = Gtk.Label(
"This is a third party package and is not officially supported"
" by Solus")
img_warn = Gtk.Image.new_from_icon_name(
"dialog-warning-symbolic", Gtk.IconSize.BUTTON)
self.abar.pack_start(img_warn)
self.abar.pack_start(lab_disclaimer)
self.abar.pack_end(button)
button.get_style_context().add_class("destructive-action")
# Details
dumb = Gtk.Label("Details ...")
self._fix_label(dumb)
dumb.set_property("margin", 12)
self.stack.add_titled(dumb, "desc", "Details")
# Files
dumb = Gtk.Label("Files ...")
self._fix_label(dumb)
dumb.set_property("margin", 12)
self.stack.add_titled(dumb, "files", "Files")
评论列表
文章目录