diff options
author | erich koslovsky <erikos@localhost.localdomain> | 2007-08-16 21:01:40 (GMT) |
---|---|---|
committer | erich koslovsky <erikos@localhost.localdomain> | 2007-08-16 21:01:40 (GMT) |
commit | d6d705bf12e6f7ecc9a01fd2fb2a91f9f2283abc (patch) | |
tree | 57953415bed3f58161eab1c9bb134c1819a8b35f /linkbutton.py | |
parent | 749e3e69e4f49249c4d89a157f345b0142d123c6 (diff) |
Made the model more flexible in terms of future extensions. Fixed some minor bugs.
Diffstat (limited to 'linkbutton.py')
-rw-r--r-- | linkbutton.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linkbutton.py b/linkbutton.py index 7f2a203..c363eaf 100644 --- a/linkbutton.py +++ b/linkbutton.py @@ -21,12 +21,11 @@ from sugar.graphics.palette import Palette, WidgetInvoker from sugar.graphics import style class LinkButton(gtk.RadioToolButton): - def __init__(self, link_name, buffer=None, group=None): + def __init__(self, buffer, pos, group=None): gtk.RadioToolButton.__init__(self, group=group) self._palette = None self.set_image(buffer) - self.link_name = link_name - self.buf = buffer + self.pos = pos def set_image(self, buffer): img = gtk.Image() |