[Butia-devel-list] The layer problem

Alan Jhonn Aguiar Schwyn alanjas en hotmail.com
Jue Mar 22 20:49:02 UYT 2012




> Date: Thu, 22 Mar 2012 11:23:27 -0400
> Subject: Re: The layer problem
> From: walter.bender en gmail.com
> To: alanjas en hotmail.com
> CC: butia-devel-l en fing.edu.uy
> 
> On Tue, Mar 20, 2012 at 7:46 PM, Alan Jhonn Aguiar Schwyn
> <alanjas en hotmail.com> wrote:
> >> I cannot reproduce the error with Sugar 0.94. Will try to find a
> >> machine with an old Sugar at OLPC this week.
> >>
> >
> > The another thing that you need reproduce is connect and desconect the
> > robot..
> >
> > That is more complicated.. The problem appears with some plug and
> > disconnects of the
> > robot.. each connection/desconnection causes a refresh of the palette and
> > each block..
> 
> I did push this patch [1], which in theory will catch and handle the
> error. However, by eliminating all of the calls to blk.set_color() and
> calling blk.refresh() after adding/setting the BOX_COLORS dictionary
> entry for blk.name, I have not been able to trigger the error. Still
> not sure of what is the root cause, but the change above is
> recommended in any case as it is much more efficient.
> 
> Please let me know if any/all of the above helps.

Ok. Now, remove: blk.set_color() and only use this?
BOX_COLORS[blk] = [.., ..]blk.refresh() 

I will check it...
Alan
> 
> regards.
> 
> -- 
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
> 
> [1] http://git.sugarlabs.org/turtleart/mainline/commit/83420deffde8064001a8296e6ccb39a18e588d70
 		 	   		  
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://www.fing.edu.uy/mailman/private/butia-devel-l/attachments/20120322/b0ee777b/attachment.html" 


Más información sobre la lista de distribución Butia-devel-l