def create_icon_widgets(box, sensitive=True): icon = Icon(icon_name='go-previous') icon.props.pixel_size = style.STANDARD_ICON_SIZE box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='computer-xo', pixel_size=style.STANDARD_ICON_SIZE, xo_color=XoColor()) box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='battery-000', pixel_size=style.STANDARD_ICON_SIZE, badge_name='emblem-busy') box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='gtk-new', pixel_size=style.STANDARD_ICON_SIZE, badge_name='gtk-cancel') box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show()
def create_icon_widgets(box, sensitive=True): icon = Icon(icon_name='go-previous') icon.props.icon_size = Gtk.IconSize.LARGE_TOOLBAR box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='computer-xo', icon_size=Gtk.IconSize.LARGE_TOOLBAR, xo_color=XoColor()) box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='battery-000', icon_size=Gtk.IconSize.LARGE_TOOLBAR, badge_name='emblem-busy') box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='gtk-new', icon_size=Gtk.IconSize.LARGE_TOOLBAR, badge_name='gtk-cancel') box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show()
def create_icon_widgets(box, sensitive=True): icon = Icon(icon_name='go-previous') icon.props.icon_size = Gtk.IconSize.LARGE_TOOLBAR box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='computer-xo', icon_size=Gtk.IconSize.LARGE_TOOLBAR, xo_color=XoColor()) box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='battery-000', icon_size=Gtk.IconSize.LARGE_TOOLBAR, badge_name='emblem-busy') box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show() icon = Icon(icon_name='gtk-new', icon_size=Gtk.IconSize.LARGE_TOOLBAR, badge_name='gtk-cancel') box.pack_start(icon, True, True, 0) icon.set_sensitive(sensitive) icon.show()