Antwort: [wxPython] File selection dialog's wildcard filter... help...

Hi!

As I can see in the documentation the list should read:

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

So you have two "|"-separated field for one line in your combobox.
Thats why you only see the first, third, fifth... and so on.

Regards,
Mike

"Chris Fama" <Chris.Fama@uq.net.au>@lists.sourceforge.net am 21.02.2001
13:41:55

Bitte antworten an <wxpython-users@lists.sourceforge.net>

Gesendet von: wxpython-users-admin@lists.sourceforge.net

Kopie:

Thema: [wxPython] File selection dialog's wildcard filter... help...

Hello,

I'm trying to get the file selection dialog filter working, as it used to
[probably a year ago], in line with the docs, with a wildcard specification
for several types of image file...

    dlg = wxFileDialog(frame,
                      "Choose an image filename", "../data", "",
                       "JPEG file (*.jpg, *.jpeg) | "
                       "GIF file (*.gif) | "
                       "TIFF file (*.tif, *.tif*) | "
                       "Try other types supported by PIL--any extension
(*.*) | "
                       "*CGM Metafile--will require more time... (*.cgm) |
"
                       "*PostScript file--will require more time...
(*.ps)",
                      flags)

{Win98 SE, wxPython 2.2.2, by the way... yes, I updated my common controls
set a few months ago... shunt I do so AGAIN?)

Unfortunately when I run this code nowadays the desired six lines are not
shown in the drop-down list of the "Files of Type" control... seems to
vary... most recently, only the first, third and fifth... (JPEG, TIFF, and
CGM]!?!

Changing the incidences of " | " to "|" doesn't solve the problem... [not
that it should, of course...]

Am I missing something that's changed in the docs "recently"? If not, then
I suppose I'd better try to do a representative self-contained script...
not
tonight though!

Thanks...

Chris

···

An: "Wxpython-Users" <wxpython-users@lists.sourceforge.net>

-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@whollysnakes.com> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Thanks for that! I wasn't reading the documentation properly--because it
USED to work [over a year ago]--not that that's reality any excuse. Thanks
to Bob also.

Cheerio, Chris

···

-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@whollysnakes.com> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------
The heart knows its own bitterness, and a stranger does not share its
joy. Proverbs 14:10

-----Original Message-----
From: wxpython-users-admin@lists.sourceforge.net
[mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Michael
Perkonigg
Sent: Thursday, 22 February 2001 12:01 AM
To: wxpython-users@lists.sourceforge.net
Subject: Antwort: [wxPython] File selection dialog's wildcard filter...
help...

Hi!

As I can see in the documentation the list should read:

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

So you have two "|"-separated field for one line in your combobox.
Thats why you only see the first, third, fifth... and so on.

Regards,
Mike

"Chris Fama" <Chris.Fama@uq.net.au>@lists.sourceforge.net am 21.02.2001
13:41:55

Bitte antworten an <wxpython-users@lists.sourceforge.net>

Gesendet von: wxpython-users-admin@lists.sourceforge.net

An: "Wxpython-Users" <wxpython-users@lists.sourceforge.net>
Kopie:

Thema: [wxPython] File selection dialog's wildcard filter... help...

Hello,

I'm trying to get the file selection dialog filter working, as it used to
[probably a year ago], in line with the docs, with a wildcard
specification
for several types of image file...

    dlg = wxFileDialog(frame,
                      "Choose an image filename", "../data", "",
                       "JPEG file (*.jpg, *.jpeg) | "
                       "GIF file (*.gif) | "
                       "TIFF file (*.tif, *.tif*) | "
                       "Try other types supported by PIL--any extension
(*.*) | "
                       "*CGM Metafile--will require more time... (*.cgm) |
"
                       "*PostScript file--will require more time...
(*.ps)",
                      flags)

{Win98 SE, wxPython 2.2.2, by the way... yes, I updated my common controls
set a few months ago... shunt I do so AGAIN?)

Unfortunately when I run this code nowadays the desired six lines are not
shown in the drop-down list of the "Files of Type" control... seems to
vary... most recently, only the first, third and fifth... (JPEG,
TIFF, and
CGM]!?!

Changing the incidences of " | " to "|" doesn't solve the problem... [not
that it should, of course...]

Am I missing something that's changed in the docs "recently"? If
not, then
I suppose I'd better try to do a representative self-contained script...
not
tonight though!

Thanks...

Chris

-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@whollysnakes.com> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users