import common test = common.Test() vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) tray = HTray() vbox.pack_start(tray, False, False, 0) tray.show() theme_icons = Gtk.IconTheme.get_default().list_icons(context=None) for i in range(0, 100): button = TrayButton(icon_name=theme_icons[i]) tray.add_item(button) button.show() tray = HTray() vbox.pack_start(tray, False, False, 0) tray.show() for i in range(0, 10): icon = TrayIcon(icon_name=theme_icons[i]) tray.add_item(icon) icon.show() hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL) tray = VTray() hbox.pack_start(tray, False, False, 0) tray.show()
import common test = common.Test() vbox = Gtk.VBox() tray = HTray() vbox.pack_start(tray, False, False, 0) tray.show() theme_icons = Gtk.IconTheme.get_default().list_icons(context=None) for i in range(0, 100): button = TrayButton(icon_name=theme_icons[i]) tray.add_item(button) button.show() tray = HTray() vbox.pack_start(tray, False, False, 0) tray.show() for i in range(0, 10): icon = TrayIcon(icon_name=theme_icons[i]) tray.add_item(icon) icon.show() hbox = Gtk.HBox() tray = VTray() hbox.pack_start(tray, False, False, 0) tray.show()