How to define more file extensions in Load Dialog ?

Hello !

Anyone know a possibility to define more type of the files at once in
File Dialog ?

#Orig:
        dlg = wxFileDialog(self, "Choose audio file", os.getcwd(), "", "*.mp3",
                           wxOPEN
                           > wxMULTIPLE
                           > wxCHANGE_DIR
                           )

Like this needed:

        dlg = wxFileDialog(self, "Choose audio file", os.getcwd(), "",
        "*.mp3|mp3 files|*.ogg|ogg files",
                           wxOPEN
                           > wxMULTIPLE
                           > wxCHANGE_DIR
                           )

???

Thanx for it.

···

--
Üdv/Kind of Regards:
fowlertrainer@anonym.hu
mailto:fowlertrainer@anonym.hu

fowlertrainer@anonym.hu wrote:

Hello !

Anyone know a possibility to define more type of the files at once in
File Dialog ?

#Orig:
       dlg = wxFileDialog(self, "Choose audio file", os.getcwd(), "", "*.mp3",
                          wxOPEN
                          > wxMULTIPLE
                          > wxCHANGE_DIR
                          )

Like this needed:

       dlg = wxFileDialog(self, "Choose audio file", os.getcwd(), "",
       "*.mp3|mp3 files|*.ogg|ogg files",
                          wxOPEN
                          > wxMULTIPLE
                          > wxCHANGE_DIR
                          )

???

Thanx for it.
                          

The syntax is:

"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"

(the bits in brackets are just to show the user)
See http://www.wxwidgets.org/manuals/2.4.2/wx140.htm#wxfiledialog

David