diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-19 16:19:24 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-21 11:51:11 (GMT) |
commit | 22f0c6ef272e7400a57f44e75a562eded95337af (patch) | |
tree | 9526f37770001f58b484a6ad7407aa7ddab95109 /ComboBox.py | |
parent | e59ebea703fcdbdba29d39bdd0e367fbd1753e5e (diff) |
...
Diffstat (limited to 'ComboBox.py')
-rw-r--r-- | ComboBox.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ComboBox.py b/ComboBox.py index d5a6c64..1ff3362 100644 --- a/ComboBox.py +++ b/ComboBox.py @@ -1,11 +1,16 @@ import pygtk import gtk -from sugar.graphics.combobox import ComboBox +from Theme import * +from sugar.graphics.combobox import * class BigComboBox(ComboBox): + def __init__(self): ComboBox.__init__(self) + + self.set_name('fubar') + def append_item(self, action_id, text = None, icon_name = None, size = None, pixbuf = None): @@ -32,7 +37,8 @@ class BigComboBox(ComboBox): width, height = gtk.icon_size_lookup(size) else: width, height = size - pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(icon_name, width, height) + pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(icon_name, + width, height) else: pixbuf = None |