Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Writing my first PERL/Tk megawidgit

by kcott (Bishop)
on Jun 22, 2020 at 07:34 UTC ( #11118348=note: print w/replies, xml ) Need Help??

in reply to Writing my first PERL/Tk megawidgit

"I cant find any concise examples showing what must be in the module, and where the perl subroutines must go."

Run the "Perl/Tk Widget Demonstration". In case you don't know, that's just widget from the command line; I usually run it in the background to free up the console (i.e. widget &). Near the bottom, you'll find "Sample Perl Mega-Widgets".

Also see the Tk documentation. The "Derived Widgets" section would be a good place to start.

In addition to those published sources of information, you can look at source code on your own computer. You can find the location of the modules by querying %INC. Here's how you'd find itself:

$ perl -E 'use Tk; say $INC{""}'

For the mega-widget Tk::Balloon:

$ perl -E 'use Tk::Balloon; say $INC{"Tk/"}'

— Ken

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118348]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-10-23 14:47 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.