Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

(jeffa) Re: Problem following Tk demo in Advanced Perl Programming

by jeffa (Bishop)
on Aug 30, 2001 at 00:00 UTC ( #108870=note: print w/replies, xml ) Need Help??


in reply to Problem following Tk demo in Advanced Perl Programming

change label to -lable

:)

Another reference (sic) to check out is Learning Perl Tk.

Big whoops! - thanks Graham! yes, -label

jefaf

Replies are listed 'Best First'.
Re: Problem following Tk demo in Advanced Perl Programming
by Graham (Deacon) on Aug 30, 2001 at 12:09 UTC
    Surely that should read "-label" So that the entire script is
    use Tk; $top = MainWindow->new(); $menu_bar = $top->Frame()->pack(side => 'top'); $search_mb = $menu_bar->Menubutton(text => 'Search', relief => 'raised', borderwidth => 2 )->pack(side => 'left', padx => 2 ); $search_mb->command(-label => 'Find', accelerator => 'Meta+F', underline => 0, command => sub {print "find\n"} ); MainLoop();

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2021-12-08 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (34 votes). Check out past polls.

    Notices?