Re: Suggesting file extension in GtkFileChooser Save dialogs?



On Fri, 2004-09-24 at 13:00, Thomas Klausner wrote:
On Wed, Sep 22, 2004 at 11:18:47PM -0700, Brian wrote:
In my python program it does not loose anything you do not delete on
purpose.

Sorry, I don't see how your answer relates to my question.  Your
code fragment seems to check for the existence of a file before
overwriting it.

My code fragment sets the filename in calling gtkfilechooser, It only
checks if it exists after selecting the file in the chooser.

I understood what you meant.  I have found that in (python/pygtk at
least) that the filename is not highlighted, the cursor is at the first
charachter in the name, and any typing done does an insert before
without loosing anything of the filename I set when calling the file
chooser (usually the file did not exist).   So by typing, foo.ext would
become myfilefoo.ext and the "foo" charachters would have to be deleted
to end up with myfile.ext .


I am sorry if I don't know the proper c library function calls to tell
you. But I have only been programming gtk in python so far.

-- 
Brian <dol-sen telus net>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]