sugar-toolkit-gtk3/examples/iconbadges.py
Daniel Narvaez 148655635f Add a make target for tests
We are running the existing test_mime.py. All the other tests which
are not unit tests but more examples of code one can run interactively
are moved to the example directory.
2013-04-09 11:36:51 +02:00

29 lines
566 B
Python

from gi.repository import Gtk
from sugar3.graphics.icon import EventIcon
from sugar3.graphics.icon import Icon
import common
test = common.Test()
test.show()
vbox = Gtk.VBox()
test.pack_start(vbox, True, True, 0)
vbox.show()
icon = Icon(icon_name="network-wireless-000")
icon.props.badge_name = 'emblem-favorite'
vbox.pack_start(icon, False, False, 0)
icon.show()
icon = EventIcon(icon_name="network-wireless-000")
icon.props.badge_name = 'emblem-favorite'
vbox.pack_start(icon, False, False, 0)
icon.show()
if __name__ == '__main__':
common.main(test)