http://qs321.pair.com?node_id=135816

dhable has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know of documentation about extending the Perl/Tk framework? I have a class that I would like to make a Toplevel control out of. I havn't been able to find anything.

Replies are listed 'Best First'.
Re: Extending Perl/Tk
by ariels (Curate) on Jan 03, 2002 at 13:20 UTC

    Try the documentation for Tk::mega and Tk::composite. The first is probably more helpful.

    Tk supports both derived widget types ("make me a widget that's just like Text, only can also do...", e.g. <samp>Tk::LabEntry</samp>) and composite widget types ("make me a new type of widget, that is implemented in terms of sub-widgets", e.g. <samp>Tk::FileSelect</samp>). The Tk::mega documentation covers both, which might be a bit confusing.

Re: Extending Perl/Tk
by dhable (Monk) on Jan 04, 2002 at 02:40 UTC
    Someone posted the suggestion of the TK::mega class. This is what I was looking for.