Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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 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
Node Status?
node history
Node Type: note [id://11118348]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-10-20 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?