1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/x11-toolkits/p5-Tk-Role-HasWidgets/pkg-descr
Sunpoet Po-Chuan Hsieh 2d9564737d - Add p5-Tk-Role-HasWidgets 1.112380
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: http://search.cpan.org/dist/Tk-Role-HasWidgets/
2011-10-10 03:23:56 +00:00

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: http://search.cpan.org/dist/Tk-Role-HasWidgets/