blob: 4f16635611b46437fa5a5358d8148c91c0c95d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from sugar.activity import activity
import logging
import gtk
class SugarBrainActivity(activity.Activity):
def __init__(self, handle):
activity.Activity.__init__(self, handle)
# Creates the Toolbox. It contains the Activity Toolbar, which is the
# bar that appears on every Sugar window and contains essential
# functionalities, such as the 'Collaborate' and 'Close' buttons.
toolbox = activity.ActivityToolbox(self)
self.set_toolbox(toolbox)
toolbox.show()
self.box_principal = gtk.VBox(False, 0)
self.set_canvas(self.box_principal)
self.box_principal.show()
|