Hello,
I'm new to the list and would like to know how to use the wxDir - GetAllFiles with wxPython.
I would also appreciate if anyone could direct me to a documentation in wxPython, not wxWindows, if it exists.
Thanks !
Thomas Zuliani
Hello,
I'm new to the list and would like to know how to use the wxDir - GetAllFiles with wxPython.
I would also appreciate if anyone could direct me to a documentation in wxPython, not wxWindows, if it exists.
Thanks !
Thomas Zuliani
all you need is already in python's libraries:
for file in os.listdir(os.getcwd()):
name, ext = os.path.splitext(filename)
if ext in ['.jpg', '.bmp']:
print file
Library Reference, chapter 6.1 for more info (Python Manual)
On Wed, 24 Mar 2004 14:05:56 +0100, ZULIANI Thomas <thomas.zuliani@crf.canon.fr> wrote:
What do you need wxDir.GetAllFiles for? maybe there is a better alternative in python's libraries.
I only want to get the list of file with a given extension in the current working directory.
wxPython should be used for GUI stuff and I think that if something is present at python's libraries level you should use that and not something provided via wx wraper.
It's true, I'll keep that in mind and look at python's library.
Thanks !Thomas
--
Peter Damoc
Hacker Wannabe
http://www.sigmacore.net/about.html
ZULIANI Thomas wrote:
Hello,
I'm currently trying to use C++ string (char *, std::string, wchar_t .) to print into wxPython but I am having problems to view strings as wxPython string and not as complex types.
My variable is viewed as '_18e1c800_p_std_string' and not as 'PopulationWS' for example.
Do you have any idea ?
I'll need more details of what you are doing.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!