def build_buttons(self): hbox = HBox(spacing=12) for button in reversed(self.buttons): hbox.pack_start(button) alignment = Alignment(xalign=1.0, yscale=1.0) alignment.add(hbox) return alignment
def build_content(self): vbox = VBox(spacing=12) vbox.pack_start(self.build_text()) if self.extra_widget: vbox.pack_start(self.extra_widget) vbox.pack_start(self.build_buttons()) alignment = Alignment(xscale=1.0, yscale=1.0) alignment.set_padding(12, 12, 17, 17) alignment.add(vbox) return alignment