Add testcase for icon badges - SL #3835
Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
parent
289787e8c6
commit
bb515893ab
28
tests/graphics/iconbadges.py
Normal file
28
tests/graphics/iconbadges.py
Normal file
@ -0,0 +1,28 @@
|
||||
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)
|
Loading…
Reference in New Issue
Block a user