def build_text(self): vbox = VBox(spacing=6) if self.description is not None: description_label = Label(self.description, wrap=True) description_label.set_bold(True) description_label.set_size_request(360, -1) vbox.pack_start(description_label) return vbox
def build_text(self): vbox = VBox(spacing=6) if self.description: description_label = Label(self.description, wrap=True) description_label.set_bold(True) description_label.set_size_request(360, -1) vbox.pack_start(description_label) return vbox
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