Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Open a file using Tkx package

by zentara (Archbishop)
on Nov 19, 2011 at 11:37 UTC ( [id://938962]=note: print w/replies, xml ) Need Help??


in reply to Open a file using Tkx package

# your code is: our $cb = $frame->new_ttk__button(-text => "Calculate"); our $filename = $cb->getOpenFile();
I don't use Tkx, but from basic knowledge of buttons and callbacks, you don't have a callback for the button. Your code should look something like this:
our $cb = $frame->new_ttk__button( -text => "Calculate", -command => sub{ our $filename = $cb->getOpenFile(); } );
See Tkx tutorial

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found