Your Tk::GUIask module should be in a separate .pm file so that it can be reused.
It looks like you've just reinvented Tk::LabEntry. If you really want to create a new widget, perhaps as an academic exercise, see the Tk::LabEntry code for pointers on how to proceed.
The basic idea is to advertise your Tk::Entry subwidget. In your code that uses Tk::GUIask, access the Tk::Entry subwidget, then use it as you would a plain Tk::Entry widget.
See also: Tk::mega, Tk::composite, and other documentation linked from those, such as Tk::ConfigSpecs and Tk::Derived. You may also find the "Sample Perl Mega-Widgets" section of the Widget Demo to be useful.
— Ken
In reply to Re: getting entered data from a pTk megawidget
by kcott
in thread getting entered data from a pTk megawidget
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |