in reply to getting entered data from a pTk megawidget
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: getting entered data from a pTk megawidget
by Anonymous Monk on Jan 10, 2022 at 23:53 UTC | |
by Anonymous Monk on Jan 11, 2022 at 01:36 UTC | |
by Anonymous Monk on Jan 11, 2022 at 14:53 UTC | |
by Anonymous Monk on Jan 11, 2022 at 16:13 UTC |