librelist archives

« back to archive

Click method for para

Click method for para

From:
Kc Erb
Date:
2013-12-09 @ 22:45
Hi all,

I could be wrong about this but it looks like:

Shoes.app do
  para "Click me", click: proc {alert "Hello World"}
end

Still doesn't work.

I get this error:

NoMethodError: undefined method `click' for #<Shoes::Swt::Para:0xbebf1eb>

I read through issue 331 <https://github.com/shoes/shoes4/issues/331>
https://github.com/shoes/shoes4/issues/331

and looked through the code and it seems like this should be working now in
Shoes4.

Suggestions?

-KC

Re: [shoes] Click method for para

From:
Tobias Pfeiffer
Date:
2013-12-11 @ 08:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there KC,

thanks for the report. Indeed it doesn't work - it seems like it's
trying to call the click method on the SWT para instead of the DSL para
(which I believe it should) I'll open a new issue.

Cheers,
Tobi

On Mon 09 Dec 2013 11:45:33 PM CET, KC Erb wrote:
> Hi all,
>
> I could be wrong about this but it looks like:
>
> Shoes.app do
>   para "Click me", click: proc {alert "Hello World"}
> end
>
> Still doesn't work.
>
> I get this error:
>
> NoMethodError: undefined method `click' for #<Shoes::Swt::Para:0xbebf1eb>
>
> I read through issue 331 <https://github.com/shoes/shoes4/issues/331>
> https://github.com/shoes/shoes4/issues/331
>
> and looked through the code and it seems like this should be working now in
> Shoes4.
>
> Suggestions?
>
> -KC
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSqCJ3AAoJEBzX32BGBaITi94IAL2e6uLkNeO+jVmsZ1sRCW95
sN4Zu242EhWSMKh4HZY4dglqVB0966XrzIOntHUJ2PMVA5NzsghVIbbzef8OmDVp
N2+aV2ssig95KkMXBDUX7jepfghCf39DypvEJXwVQkL5wEJw+98SdOc/er10JENk
ArED3Do6Z64/7gxiDA5NmpZWQ6mS4PEhMCWtoxxjH+1WQXnHy58Ht0DrJe+WCthJ
JKOKD5jBZggaTzdAI+R57DXp0k797awkv7EdmUciV2ilBxHu1VX4L2mXI7cbypV7
gQHyjTPO12BdTdJ6l+xf2jwHkwOMS1Bvou9W4gof0iMqaJbhgGjLJw2Zup4uSy4=
=dtyx
-----END PGP SIGNATURE-----