473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 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 1677
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....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.