def get_packaging_table_as_tabularx(self): table = Tabularx("|X|X|X|", row_height=1.25) table.add_hline() table.add_row(bold("Type"), bold("Størrelse"), bold("Antall")) for child_id in self.packaging_table.get_children(): child = self.packaging_table.item(child_id) if (text := child["text"]): table.add_hline() table.add_row(text, child["values"][0], child["values"][1])
def get_general_info_as_tabularx(self): table = Tabularx("|X|X|X|X|", row_height=1.25) table.add_hline() table.add_row(bold("Kundenavn"), self.customer_name.get(), bold("Ordrenummer"), self.order_number.get()) table.add_hline() total_lengde = str(self.get_total_length_l()) if (total_length_r := self.get_total_length_r()): total_lengde += f" x {total_length_r}"