sugar-toolkit-gtk3/sugar/graphics/toolbar.py

15 lines
531 B
Python
Raw Normal View History

2007-02-07 18:26:39 +01:00
import gobject
import hippo
2007-02-26 12:40:14 +01:00
from sugar.graphics import units
2007-02-07 18:26:39 +01:00
class Toolbar(hippo.CanvasBox):
__gtype_name__ = 'Toolbar'
def __init__(self, orientation=hippo.ORIENTATION_HORIZONTAL):
hippo.CanvasBox.__init__(self, orientation=orientation,
2007-02-26 12:40:14 +01:00
background_color=0x414141ff,
box_height=units.grid_to_pixels(1),
2007-03-20 12:01:01 +01:00
padding_left=units.grid_to_pixels(1),
padding_right=units.grid_to_pixels(1))