def _setup_summary(self): hbox = Gtk.HBox() hbox.set_spacing(6) self.vbox.pack_start(hbox, False, True, 0) self.vbox.reorder_child(hbox, 2) self.vbox.set_spacing(6) label = Gtk.Label() hbox.pack_start(label, True, True, 0) # Create some labels to show a summary for the search (kiwi's # SummaryLabel supports only one column) self.items_label = Gtk.Label() self.quantity_label = Gtk.Label() self.items_per_sale_label = Gtk.Label() self.total_label = Gtk.Label() for widget in [ self.items_label, self.quantity_label, self.items_per_sale_label, self.total_label ]: hbox.pack_start(widget, False, False, 0) set_bold(widget) hbox.show_all()
def _setup_summary(self): hbox = gtk.HBox() hbox.set_spacing(6) self.vbox.pack_start(hbox, False, True) self.vbox.reorder_child(hbox, 2) self.vbox.set_spacing(6) hbox.pack_start(gtk.Label(), True, True) # Create some labels to show a summary for the search (kiwi's # SummaryLabel supports only one column) self.quantity_label = gtk.Label() self.reserved_label = gtk.Label() self.total_label = gtk.Label() for widget in [self.quantity_label, self.reserved_label, self.total_label]: hbox.pack_start(widget, False, False) set_bold(widget) hbox.show_all()
def setup_widgets(self): super(ProductSearch, self).setup_widgets() hbox = gtk.HBox() hbox.set_spacing(6) self.vbox.pack_start(hbox, False, True) self.vbox.reorder_child(hbox, 2) self.vbox.set_spacing(6) hbox.pack_start(gtk.Label(), True, True) # Create two labels to show a summary for the search (kiwi's # SummaryLabel supports only one column) self.quantity_label = gtk.Label() hbox.pack_start(self.quantity_label, False, False) self.total_sold_label = gtk.Label() hbox.pack_start(self.total_sold_label, False, False) hbox.show_all() set_bold(self.quantity_label) set_bold(self.total_sold_label)
def setup_widgets(self): hbox = gtk.HBox() hbox.set_spacing(6) self.vbox.pack_start(hbox, False, True) self.vbox.reorder_child(hbox, 2) self.vbox.set_spacing(6) hbox.pack_start(gtk.Label(), True, True) # Create two labels to show a summary for the search (kiwi's # SummaryLabel supports only one column) self.payments_label = gtk.Label() hbox.pack_start(self.payments_label, False, False) self.sales_label = gtk.Label() hbox.pack_start(self.sales_label, False, False) hbox.show_all() set_bold(self.payments_label) set_bold(self.sales_label) self.add_csv_button(_('Commissions'), _('commissions'))