468,316 Members | 1,921 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

Tk take a filebrowser

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
3 1450
eWish
971 Expert 512MB
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
Arepi
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
410 Expert 256MB
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.

Similar topics

23 posts views Thread by anton.vredegoor | last post: by
2 posts views Thread by Matthias | last post: by
5 posts views Thread by Matthias Kaeppler | last post: by
1 post views Thread by Matthias Kaeppler | last post: by
41 posts views Thread by NB | last post: by
6 posts views Thread by Juan Manuel Ramollino | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.