I've suspected this problem for some time but have confirmed it today. As
part of my application at one point I pop up a wxFileDialog. There are
5,199 files in the directory displayed by the dialog. I highlight the
first of these and then scroll to the end using the slider. I do
shift-leftclick to highlight all. I then click 'Open' and my callback adds
each filename to a list box using the GetPaths() method of the
wxFileDialog.
Except it adds only 1103 names (this is absolutely consistent). Indeed,
GetPaths() returns a list of length 1103. I can get varying effects (more
than 1103 files) depending, it appears, on how fast I move the slider or to
what point. But no matter what I do I can't seem to catch all the files in
the directory.
Anybody know what's up with this?
···
--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456
I've suspected this problem for some time but have confirmed it today. As
part of my application at one point I pop up a wxFileDialog. There are
5,199 files in the directory displayed by the dialog. I highlight the
first of these and then scroll to the end using the slider. I do
shift-leftclick to highlight all. I then click 'Open' and my callback adds
each filename to a list box using the GetPaths() method of the
wxFileDialog.
Except it adds only 1103 names (this is absolutely consistent). Indeed,
GetPaths() returns a list of length 1103.
I seem to remember something about this being discussed on wx-dev or somewhere but I can't find a link right now. IIRC, it was determined that it was a problem in Windows. Perhaps getting a newer version of the comdlg32.dll will take care of it?
I can get varying effects (more
than 1103 files) depending, it appears, on how fast I move the slider or to
what point.
This is weird...
···
gary.h.merrill@gsk.com wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!