On Aug 1, 2008, at 3:42 PM, Mike Mabey wrote:

> First thing, I know wxPython has the wx.FileDialog.  Is the  
> dabo.ui.getFile
> method using this object?  I can see from the documentation on this  
> method
> that PDF files aren't an "understood file type."  Since all the  
> files to be
> uploaded are going to be PDF's, what's going to be the best way to  
> check for
> this?

        getFile() will do what you want. When I wrote it, I only added a  
small set of file extensions that will be automatically translated,  
but any extension will work. You can type:

dabo.ui.getFile("abcdefg")

...and it will only allow you to select files with the extension  
'abcdefg'. FWIW, I can easily add file extensions to the getFile()  
function, but let me take a look into making it extensible via a  
settings file. This way, if someone has an odd file type they want to  
support, they can edit a text file instead of needing a program change.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to