[wxPython-users] wx.FileDialog and file extension

Robin Dunn robin at alldunn.com
Thu Nov 2 20:45:28 PST 2006


Basil Shubin wrote:
> Hi, friends!
> 
> Is there a way to append extension to a file while entering its name or 
> after that? How to check if filename already has an extension, if not 
> append one?

Take the value you get from the dialog and examine it.  The functions in 
the os.path module will likely be of assistance.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list