New frameinvoker
This commit is contained in:
@@ -24,12 +24,14 @@ from sugar.graphics.iconbutton import IconButton
|
||||
from sugar import profile
|
||||
|
||||
from model import bundleregistry
|
||||
from frameinvoker import FrameCanvasInvoker
|
||||
|
||||
class ActivityButton(IconButton):
|
||||
def __init__(self, activity):
|
||||
IconButton.__init__(self, icon_name=activity.get_icon())
|
||||
|
||||
palette = Palette(activity.get_name())
|
||||
palette.props.invoker = FrameCanvasInvoker(self)
|
||||
palette.set_group_id('frame')
|
||||
self.set_palette(palette)
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ sugar_PYTHON = \
|
||||
ActivitiesBox.py \
|
||||
clipboardbox.py \
|
||||
clipboardpanelwindow.py \
|
||||
frameinvoker.py \
|
||||
FriendsBox.py \
|
||||
eventarea.py \
|
||||
frame.py \
|
||||
|
||||
@@ -336,3 +336,4 @@ class Frame(object):
|
||||
|
||||
def notify_key_release(self):
|
||||
self._key_listener.key_release()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user