Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Writing my first PERL/Tk megawidgit

by kcott (Archbishop)
on Jun 22, 2020 at 07:34 UTC ( [id://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 Tk.pm itself:

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

For the mega-widget Tk::Balloon:

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

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found