sugar-toolkit-gtk3/shell/view/home/MyIcon.py

11 lines
297 B
Python
Raw Normal View History

2006-10-04 15:26:41 +02:00
from sugar.graphics.canvasicon import CanvasIcon
from sugar.graphics.iconcolor import IconColor
2006-10-04 15:26:41 +02:00
import conf
2006-10-04 15:26:41 +02:00
class MyIcon(CanvasIcon):
def __init__(self, size):
profile = conf.get_profile()
2006-10-04 15:26:41 +02:00
CanvasIcon.__init__(self, icon_name='stock-buddy',
color=profile.get_color(), size=size)