#4579 NORM Never A: CanvasIcon accepts scale parameter but raises an exception if you use it

Zarro Boogs per Child bugtracker at laptop.org
Wed Oct 31 19:28:01 EDT 2007


#4579: CanvasIcon accepts scale parameter but raises an exception if you use it
-------------------------+--------------------------------------------------
 Reporter:  paulproteus  |       Owner:  marco         
     Type:  defect       |      Status:  new           
 Priority:  normal       |   Milestone:  Never Assigned
Component:  sugar        |     Version:                
 Keywords:               |    Verified:  0             
-------------------------+--------------------------------------------------
 In a subclass of sugar.icon.CanvasIcon, I called the CanvasIcon
 constructor like this:

 {{{
         CanvasIcon.__init__(self,icon_name="theme:"+icon_name,
                                 xalign=hippo.ALIGNMENT_END)
                                 scale=self.ICON_SCALE)
 }}}

 In the journal log, I got this message:

 {{{
   File "/home/paulproteus/jhbuild/sugar-jhbuild/build/lib/python2.5/site-
 packages/sugar/graphics/icon.py", line 416, in do_set_property
     if self._buffer.scale != value:
 AttributeError: '_IconBuffer' object has no attribute 'scale'
 }}}

-- 
Ticket URL: <https://dev.laptop.org/ticket/4579>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list