diff options
Diffstat (limited to 'tests/graphics/ticket2855.py')
-rw-r--r-- | tests/graphics/ticket2855.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/graphics/ticket2855.py b/tests/graphics/ticket2855.py index 96c4a66..0de36a3 100644 --- a/tests/graphics/ticket2855.py +++ b/tests/graphics/ticket2855.py @@ -21,7 +21,7 @@ contains only an icon and should be rendered similarly to the toolbar controls. Ticket #2855. """ -import gtk +from gi.repository import Gtk from sugar3.graphics.palette import Palette from sugar3.graphics.icon import Icon @@ -33,19 +33,19 @@ test = common.TestPalette() palette = Palette('Test radio and toggle') test.set_palette(palette) -box = gtk.HBox() +box = Gtk.HBox() -toggle = gtk.ToggleButton() +toggle = Gtk.ToggleButton() -icon = Icon(icon_name='go-previous', icon_size=gtk.ICON_SIZE_LARGE_TOOLBAR) +icon = Icon(icon_name='go-previous', icon_size=Gtk.IconSize.LARGE_TOOLBAR) toggle.set_image(icon) box.pack_start(toggle, False) toggle.show() -radio = gtk.RadioButton() +radio = Gtk.RadioButton() -icon = Icon(icon_name='go-next', icon_size=gtk.ICON_SIZE_LARGE_TOOLBAR) +icon = Icon(icon_name='go-next', icon_size=Gtk.IconSize.LARGE_TOOLBAR) radio.set_image(icon) radio.set_mode(False) |