two questions - no common theme
Harper, Gina
gharper at medplus.com
Wed Feb 9 15:55:31 EST 2005
2) os.listdir "returns a list containing the names of the entries in the
directory", this does include directories in the top level directory.
For the complete listing try os.walk() which "returns a tuple-(dirpath,
dirnames, filenames"
-----Original Message-----
From: Sean McIlroy [mailto:sean_mcilroy at yahoo.com]
Sent: Wednesday, February 09, 2005 3:08 PM
To: python-list at python.org
Subject: two questions - no common theme
And now for a pair of questions that are completely different:
1) I'd like to be able to bind callbacks to presses of the arrow buttons
on the keyboard. How do you say that in Tkinter?
2) The function 'listdir' in os.path returns a list of all the files in
the given directory - how do I get hold of a list of its subdirectories?
Any help will be greatly appreciated.
Peace,
STM
More information about the Python-list
mailing list