diff options
Diffstat (limited to 'toggleitem.py')
-rw-r--r-- | toggleitem.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/toggleitem.py b/toggleitem.py index 62eb653..f5ff5b6 100644 --- a/toggleitem.py +++ b/toggleitem.py @@ -1,7 +1,4 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# -# Copyright (C) 2012 S. Daniel Francis <francis@sugarlabs.org> +# Copyright (C) 2012-2013 S. Daniel Francis <francis@sugarlabs.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,16 +17,16 @@ import logging logger = logging.getLogger('toggleoption') -import gobject -import gtk -from sugar.graphics.toggletoolbutton import ToggleToolButton +from gi.repository import GObject +from gi.repository import Gtk +from sugar3.graphics.toggletoolbutton import ToggleToolButton import stock from item import Item class ToggleItem(Item): - __gsignals__ = {'toggled': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, - (gobject.TYPE_BOOLEAN,))} + __gsignals__ = {'toggled': (GObject.SignalFlags.RUN_LAST, None, + (GObject.TYPE_BOOLEAN,))} def __init__(self, default_value=True, stock_id=None, important=False): Item.__init__(self, stock_id, important) |