def _run_about(self): info = get_utility(IAppInfo) about = gtk.AboutDialog() about.set_name(info.get("name")) about.set_version(info.get("version")) about.set_website(stoq.website) release_date = stoq.release_date about.set_comments(_('Release date: %s') % datetime.datetime(*release_date).strftime('%x')) about.set_copyright('Copyright (C) 2005-2012 Async Open Source') about.set_logo(render_logo_pixbuf('about')) # License if locale.getlocale()[0] == 'pt_BR': filename = 'COPYING.pt_BR' else: filename = 'COPYING' data = self._read_resource('docs', filename) about.set_license(data) # Authors & Contributors data = self._read_resource('docs', 'AUTHORS') lines = data.split('\n') lines.append('') # separate authors from contributors data = self._read_resource('docs', 'CONTRIBUTORS') lines.extend([c.strip() for c in data.split('\n')]) about.set_authors(lines) about.set_transient_for(get_current_toplevel()) about.run() about.destroy()
def setup_widgets(self): self.get_toplevel().set_size_request(*self.size) self.notification_label.set_text('') self.notification_label.set_color('black') if api.sysparam(api.get_default_store()).DISABLE_COOKIES: self.remember.hide() self.remember.set_active(False) gtkimage = gtk.Image() gtkimage.set_from_pixbuf(render_logo_pixbuf('login')) self.logo_container.add(gtkimage) self.logo_container.show_all()
def _setup_widgets(self): self._inventory_widgets = [self.Sales, self.barcode, self.quantity, self.sale_items, self.advanced_search, self.checkout_button, self.NewTrade, self.LoanClose, self.WorkOrderClose] self.register_sensitive_group(self._inventory_widgets, lambda: not self.has_open_inventory()) self.stoq_logo.set_from_pixbuf(render_logo_pixbuf('pos')) self.order_total_label.set_size('xx-large') self.order_total_label.set_bold(True) self._create_context_menu() self.quantity.set_digits(3)
def _setup_widgets(self): self._inventory_widgets = [ self.Sales, self.barcode, self.quantity, self.sale_items, self.advanced_search, self.checkout_button, self.NewTrade, self.LoanClose, self.WorkOrderClose ] self.register_sensitive_group(self._inventory_widgets, lambda: not self.has_open_inventory()) self.stoq_logo.set_from_pixbuf(render_logo_pixbuf('pos')) self.order_total_label.set_size('xx-large') self.order_total_label.set_bold(True) self._create_context_menu() self.quantity.set_digits(3)
def _update_widgets(self): self.image1.set_from_pixbuf(render_logo_pixbuf('config')) self.title_label.set_bold(True)
def post_init(self): self.title_label.set_size('xx-large') self.title_label.set_bold(True) self.logo.set_from_pixbuf(render_logo_pixbuf('update')) self.wizard.next_button.grab_focus()