472,976 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,976 software developers and data experts.

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 1668
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

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

Similar topics

23
by: anton.vredegoor | last post by:
Here's my situation: I'm typing this in a public library on a computer with OS windows 2000 server. I can run Internet explorer, word, excel and powerpoint, that's it. Maybe java, but it seems...
2
by: Matthias | last post by:
Hi, I am currently writing a gtkmm component which acts as a file browser, much like a small filemanager which can be embedded in gtkmm applications as a scrolled window. I have just...
5
by: Matthias Kaeppler | last post by:
Hello, in my application, I want to print file sizes in a human readable format. However, I remember a thread here which dealt with a similar issue, and people said it'd be a bad idea to write...
1
by: Matthias Kaeppler | last post by:
Hello, this is related to another post by me, which sort went down, so I thought I'd make a new thread. My problem is, I want to display file sizes in the format X.YZ (two digits behind the...
41
by: NB | last post by:
Hi I have been developing on MS Access / Jet / VBA platform for about 2 years. The current project I am working on for a small business is built on Access 2002. It has about 53 tables in 2...
6
by: Juan Manuel Ramollino | last post by:
Greetings everyone! I am creating a webcontrol that reads one or more directorie's content and displays all the filenames (tipically PDFs or PPTs) so that the user can select the desired one and...
2
by: celtique | last post by:
Hello everybody! I've just registered to this forum and yet got a question. :) I've got some database, that is processed by PHP in a 'while' loop and each element that the loop draws (<li>) gets...
3
by: sekarm | last post by:
Hi All, I came for one more doubt in dotnet windows application(C#.net or vb.net). how to implement Folderbrowserdialog or Filebrowsedialog box is appeared in form. All are them done in...
10
by: evicailieva | last post by:
A have a php scrip where I call a JavaScript function. I don't know why, but it doesn't work. At the beginning, when I was writing the script it was working but now it's not. I don't know wхat to do....
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.