On Mon, Jan 14, 2008 at 03:08:18PM -0800, Oliver Smith wrote:
> 1) I get random errors of the "shoes has encountered an error and must
> close" type when the list of completed tasks refreshes.  the part that
> throws the error is in 'refresh' starting at line 68.  I'm clearing the
> @gui_completed stack and using 'append' to add new stuff to it.  the error
> seems to go away if I comment out the call to 'clear'.  I've played around
> with it a bit and I don't think the error is on my side unless I'm doing
> something blatantly wrong?

Rather than calling both "clear" and "append do", you can just stick
with "clear do".

  @gui_completed.clear do
    background white
  end

Will clear the @gui_completed element and fill it with a new set of
elements.

> 2) any chance there's an easy way to put a shoes app in the system tray?
> just asking :)

Not easy, but there are some pointers here:
http://www.ruby-forum.com/topic/18102

Although this won't ever be a part of Shoes, I would love to see a 
little library that was small, easy, and used the native API calls
for each OS.

> 3) I could not figure out how to get a callback when I type return in the
> 'new reminder' field, hence the separate Add button.

Right, I haven't sorted this out for all the platforms yet.

Well, anyway, that's a great sample and I'd really like to include
it with Shoes, if you are okay with the license:
<http://code.whytheluckystiff.net/svn/shoes/trunk/COPYING>

You would be credited, just as Thomas Bell is.

_why

Reply via email to