mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
ad4f267b7a
search.cpan.org is shutting down. It will redirect to metacpan.org after June 25, 2018. With hat: perl
12 lines
573 B
Plaintext
12 lines
573 B
Plaintext
When programming Tk, it's almost always a good idea to keep a reference to the
|
|
widgets that you created in the interface. Most of the time, a simple hash is
|
|
enough; but it is usually wrapped up in methods to make the hash private to the
|
|
window object. And of course, those methods are duplicated in all modules, under
|
|
a form or another.
|
|
|
|
Since duplication is bad, this module implements a Moose role implementing those
|
|
methods once and forever. This implies that your class is using Moose in order
|
|
to consume the role.
|
|
|
|
WWW: https://metacpan.org/release/Tk-Role-HasWidgets
|