Subject: | Add a method to get a widget's id |
Date: | Sun, 29 Jun 2014 16:41:25 +0100 |
To: | bug-Curses-UI [...] rt.cpan.org |
From: | Errietta Kostala <errietta [...] errietta.me> |
Curses::UI::Container method that gets the id of a specific container. Easy
to do since we already have $this->{-object2id}.
Possible Use for it?: I created a rows of widgets in a loop, with an id
that includd the row number, and when I clicked/changed the value of one I
wanted to see which row it was in and affect the contents of another widget
of the same row. Sorry if this is horribly awful!
Patch attached.
--
Errietta Kostala ( http://www.errietta.me )
Message body is not shown because sender requested not to inline it.