Put some border around the combo

This commit is contained in:
Marco Pesenti Gritti 2007-06-13 00:43:30 +02:00
parent f5bb269849
commit 5cf263537f

View File

@ -18,11 +18,14 @@
import gtk import gtk
from sugar.graphics.combobox import ComboBox from sugar.graphics.combobox import ComboBox
from sugar.graphics import units
class ToolComboBox(gtk.ToolItem): class ToolComboBox(gtk.ToolItem):
def __init__(self): def __init__(self):
gtk.ToolItem.__init__(self) gtk.ToolItem.__init__(self)
self.set_border_width(units.microgrid_to_pixels(1))
self.combo = ComboBox() self.combo = ComboBox()
self.add(self.combo) self.add(self.combo)
self.combo.show() self.combo.show()