473,387 Members | 1,493 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,387 software developers and data experts.

Tix.FileSelectDialog wait for user?

Hi,

I have a question concerning the Tix file select mechanisms.
Unfortunately,
I have very little experience with neither tk, Tkinter nor Tix.
Somewhere
in my GUI I have a save button. What I want is that pressing the button
opens a file requester. The user can either select a filename or cancel
the
action. I have found Tix.FileSelectDialog which seems to be nice for
the task.
But how can I use this dialog after all? how can I e.g. attach a
command to the
"Ok"-Button. Or isn't there a simple function that
1.) opens the requester
2.) waits until the requester is closed
3.) returns either a string (filename) or None (canceled)

so that I can just write something like:
fname = FileSelect()
if fname != None : do_something_with(fname)
Damn, I hate Tk's and Tix' so called "manuals":
The Tk manual takes a user and makes it into a grammar parser. Further
information,
like common usage or examples, that might normally be expected in a
manual cannot be
found with no additional arguments.
The Tk manual returns the completely clueless programmer.

Start to like pydoc(Tkinter) and pydoc(Tix), though :-)

- harold -

--
"Mr Ghandi, what do you think of western civilization?"
"Oh, this would be a great idea."

Jul 18 '05 #1
0 996

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

Similar topics

1
by: batham | last post by:
Gurus, I have a mainpage.aspx webform, in the page load of this page I am displaying a text "Please wait connecting..." and then I want the user to see this output on the WebForm, while I do...
4
by: jas | last post by:
I have a basic client/server socket situation setup....where the server accepts a connection and then waits for commands. On the client side, I create a socket, connect to the server...then I...
1
by: Tim Dol | last post by:
I have inherited a VB6-SP5 program connecting to an Access 2000 database. I'm relatively new to VB/Access programming, so I may overlook something obvious. I'll try to explain the problem I can't...
5
by: Mike Turco | last post by:
(This was also posted to comp.database.ms-access before I realized this was the hep group.) Lets say that my WinXP computer has two users: Michael and Kathryn. One or the other logs into the...
3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
5
by: Michelle Stone | last post by:
Hi everybody I am writing a simple asp.net application using form authentication. I store the list of all users and their passwords in an SQL Server database table. My client recently told me...
0
by: Edward Low | last post by:
Hi, How should i allow user to upload multiple files in a page and display message on the page to inform the client the file is being uploading while the upload process still in progress? for...
8
by: David Thielen | last post by:
Hi; ..NET 2.0 I have a situation where when the user selects an item in a drop down list, the code behind is called to update the values in another list on the page. This update can take 3 -...
2
by: hufnagel | last post by:
I have a module I'm building that kicks off with a button click. I need the module to do the following... * some various housekeeping stuff and data collection (done) * open a form (done) * fill...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.