librelist archives

« back to archive

appending to list_box

appending to list_box

From:
Luka Povreslo
Date:
2014-07-30 @ 14:40
I'm not sure how shoes treats list_box, at first I thought it was an array
but it doesn't seem to have same way of doing things. I want that my
application appends strings to it if certain files exists.

And one more question(just being curious), is there any way that I can send
simple E-Mails from shoes application? I thought of it as a sort of a way
of getting feedback from users.

Re: [shoes] appending to list_box

From:
Kc Erb
Date:
2014-07-30 @ 15:21
Hi Luka,

You found a bug! Thanks! I just opened an issue about it: #820
<https://github.com/shoes/shoes4/issues/820>

The items property of list_box is an array and behaves as such.
Unfortunately shoes isn't updating list_box when its :items gets updated.

I think I could fix that before the next pre-release (which will hopefully
be soonish), but until then your only option is via items=. So in other
words you would want to reset the items list each time you update the
array.

Thanks for trying shoes on!

-KC

Re: [shoes] appending to list_box

From:
Luka Povreslo
Date:
2014-07-31 @ 15:49
Thanks for your answer, I'm glad if I contributed in any way. I'm looking
forward for the next pre-release!


2014-07-30 17:21 GMT+02:00 KC Erb <iamkcerb@gmail.com>:

> Hi Luka,
>
> You found a bug! Thanks! I just opened an issue about it: #820
> <https://github.com/shoes/shoes4/issues/820>
>
> The items property of list_box is an array and behaves as such.
> Unfortunately shoes isn't updating list_box when its :items gets updated.
>
> I think I could fix that before the next pre-release (which will hopefully
> be soonish), but until then your only option is via items=. So in other
> words you would want to reset the items list each time you update the
> array.
>
> Thanks for trying shoes on!
>
> -KC
>
>
>