blob: 3f24afe68d4fc5a44412727f5a127eaf866bec5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import gobject
import hippo
from sugar.graphics import units
class Toolbar(hippo.CanvasBox):
__gtype_name__ = 'Toolbar'
def __init__(self, orientation=hippo.ORIENTATION_HORIZONTAL):
hippo.CanvasBox.__init__(self, orientation=orientation,
background_color=0x414141ff,
box_height=units.grid_to_pixels(1),
spacing=units.points_to_pixels(5)
)
|