473,407 Members | 2,326 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,407 software developers and data experts.

'Browse' button for *.txt file?

Hi
I am searching for a module, that would allow me to call files by
using a 'browse' button. Is there any uniform module for browsing
files, or is there a special module for *.txt files?
Thanks
Fred
Jul 18 '05 #1
5 3654
Fred wrote:
I am searching for a module, that would allow me to call files by
using a 'browse' button. Is there any uniform module for browsing
files, or is there a special module for *.txt files?


I think you'll want to take some time to put your
requirements into different words. Much of what
you say above doesn't really make sense, and we'd
mostly be guessing if we tried to answer.

"call files"? What does that mean? One calls
subroutines, but not files. You can view them,
or execute them, or open them and read data from
them... not call them.

"browse button"? What does that mean? Are you
concerned about the button part of that, or are
you really just asking for a way to "browse"
something? What does "browse" mean to you?
Usually it means something like displaying a file
selection dialog that lets the user navigate
up and down through the directory tree and
select files, and the contents of the files are
displayed when the user selects one. Is that
what you wanted?

Finally, are you trying to do this from within
a Python program? If not, there are certainly
lots of things that will do the job without
Python... the Explorer in Windows, for example.

Which leads to another point: what platform are
you on? This "browse" thing is almost certain
to mean you are trying to write a GUI program,
and for that you need to know what platform(s)
you want it to run on, and you need to pick
one of the available frameworks. Choices include
wxPython, Tkinter, some GTK thing, etc...

-Peter
Jul 18 '05 #2
Sorry if my choice of words is not very clear to you, but as english
is not my first language, I put it this way because of a lack of
better words.
I will try it differently:
What I meant is that I am searching for a module, that would allow me
to select a file by not using a typed path, but by choosing it like a
file in the normal windows exploer, where all the folders and
subfolders are listed. (I still don't know the word for this
method...)
And I meant open and read data from files, again 'lack of better words'.
I am using Windows XP, Python 2.3.5 with win32all extension.
Sorry for the trouble this caused!
Jul 18 '05 #3
Are you trying to do this within a GUI?

If so, wxPython, PyGTK, and PyQT all have ways to do this. You can also
use EasyDialogs for this as well.

If not, flush...

Jul 18 '05 #4
Fred wrote:
Sorry if my choice of words is not very clear to you, but as english
is not my first language, I put it this way because of a lack of
better words.
I will try it differently:
What I meant is that I am searching for a module, that would allow me
to select a file by not using a typed path, but by choosing it like a
file in the normal windows exploer, where all the folders and
subfolders are listed. (I still don't know the word for this
method...)
And I meant open and read data from files, again 'lack of better words'.
I am using Windows XP, Python 2.3.5 with win32all extension.
Sorry for the trouble this caused!


Don't worry about that, comp.lang.python is very forgiving.

You might get some ideas from these URLs:

http://www.onlamp.com/pub/a/python/e...hpt20/?page=10
http://www.oreilly.com/catalog/pytho...pter/ch20.html
http://www.faqts.com/knowledge_base/index.phtml/fid/264

Some of which are extracted from Mark Hammond's and Andy Robinson's
"Python Programming on Win32".

regards
Steve

Jul 18 '05 #5
Sweet.Thanks for the URLs!!
And for all the other help and good guessing
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
5
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
5
by: Mike Moore | last post by:
I need to create something very similiar to the browse folder capability. This would allow me to support the following - A user would create a document on their server, then they would need to...
2
by: johnny | last post by:
hi all, I have troubles with a css styled form: I cannot make an upload field staying into a fixed column , say 100 pixels wide. It could be enough to have the file browse button below the...
3
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
3
by: oopaevah | last post by:
I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens. All I do is call click()...
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
4
by: developing | last post by:
Hi All, I have a browse button that the user can click to select a file. The button then fetches the file path. This is all working fine except my boss wants some add functionality. I need it to...
1
by: ipa | last post by:
Hello, I made one browse button in asp form to store files. Now i am facing the problem is when i am editing that asp form. In that i call browse button during edit.but during edit, that...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.