By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,852 Members | 2,182 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,852 IT Pros & Developers. It's quick & easy.

Tk take a filebrowser

P: 62
Hi!

I want take a filebrowser in my script (inTk). How can I do this?
WinXP,Active Perl 5.10.0

Thanks!
Oct 19 '08 #1
Share this Question
Share on Google+
3 Replies


eWish
Expert 100+
P: 971
I have not used tk enough to offer assistance. However, I do know that you question does not make sense to me. Please post some code and we will try to help.

--Kevin
Oct 19 '08 #2

P: 62
I have not used tk enough to offer assistance. However, I do know that you question does not make sense to me. Please post some code and we will try to help.

--Kevin
Ok.

So:

Expand|Select|Wrap|Line Numbers
  1. use Tk;    
  2. $mw=MainWindow->new();                
  3. $mw->maxsize(500,800);                                
  4. $mw->minsize(500,800);
  5.  
  6. $file = $mw->getOpenFile ();
  7.  
that give a windows browser to select and open a file

I need a browser but no just open file, but I can add subrutins for buttons ,I can move the selected filename in a scalar ect.. Example for: read, filtering ect. the selected file.

Thanks!
Oct 19 '08 #3

nithinpes
Expert 100+
P: 410
Ok.

So:

Expand|Select|Wrap|Line Numbers
  1. use Tk;    
  2. $mw=MainWindow->new();                
  3. $mw->maxsize(500,800);                                
  4. $mw->minsize(500,800);
  5.  
  6. $file = $mw->getOpenFile ();
  7.  
that give a windows browser to select and open a file

I need a browser but no just open file, but I can add subrutins for buttons ,I can move the selected filename in a scalar ect.. Example for: read, filtering ect. the selected file.

Thanks!

If I have understood your question correctly, you can make use of Tk::DirTree.
Oct 20 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.