Re: [Sugar-devel] TA NXT plugin - cleanup and faster startup

2011-03-23 Thread Martin Langhoff
On Wed, Mar 23, 2011 at 1:48 PM, Emiliano Pastorino wrote: >> One situation that is not handled well is unplugging/replugging of the >> usb cable -- which may well happen between "runs" in a busy classroom. > > I was thinking just a moment ago on listening for "deviceadded" and > "deviceremoved" >

Re: [Sugar-devel] TA NXT plugin - cleanup and faster startup

2011-03-23 Thread Emiliano Pastorino
> > One situation that is not handled well is unplugging/replugging of the > usb cable -- which may well happen between "runs" in a busy classroom. I was thinking just a moment ago on listening for "deviceadded" and "deviceremoved" signals from hal, hidding/unhidding nxt palette and calling find_

Re: [Sugar-devel] TA NXT plugin - cleanup and faster startup

2011-03-23 Thread Martin Langhoff
On Wed, Mar 23, 2011 at 12:54 PM, Martin Langhoff wrote: > One situation that is not handled well is unplugging/replugging of the > usb cable -- which may well happen between "runs" in a busy classroom. > > We could address that by wrapping every call to the NXT libs with a > try/except that retri

[Sugar-devel] TA NXT plugin - cleanup and faster startup

2011-03-23 Thread Martin Langhoff
Hi Emiliano, Walter, list, At http://dev.laptop.org/git/users/martin/turtleart/ you'll find current TA master plus 2 patches. One is Emiliano's work, presented as a single patch that only touches the relevant files. I think this is good to merge. Author: Emiliano Pastorino Date: Wed Mar 23 11: