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:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 3:08 PM To: python-list@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 -- http://mail.python.org/mailman/listinfo/python-list