I have a few questions about Shoes that I haven't been able to figure out.

I'm working on a making a twitter client (yes, another).  Mostly because all
of the ones for linux are terrible and/or don't work.

I really like Shoes so far, and am making good progress.

I'm trying to make links for images within the client that open new windows
(rather than linking an external website).

I can't quite figure out how to pass context into Procs such that state can
be passed into the action I'm linking to.  For example:

['http://foo.com', 'http://bar.com'].each do |s|
  link(s, :click => Proc.new{ window { image s } })
end

The issue here is that "s" doesn't have the right context when it's click
since "s" is no longer in scope.  I tried seeing if the Proc would take
arguments, but that just crashed Shoes.  Any ideas on how I could work
around this problem?

Thanks so much for your help in advance.

- scott

Reply via email to