how to list names of all files from selected directory and sub directories with in directory using tkinter. Here is my code .
def openDirectory(self):
self.dirname = tkFileDialog.askdirectory(parent=self.root,
initialdir='/home/', title='Select your database' )
self.files=os.listdir(self.dirname)
print self.files
it just list files in directory. if directory contains sub directories, it gave error message .I want to list all files of directory and sub directories files name.