Directory in Windows

2005-04-30 Thread custard_pie
Hi,..I tried to list files in a tree directory using os.path.walk. To avoid dirnames fromm being listed i use the os.path.isdir method. However, when isdir encounters directories that use spaces in their name e.q My Documents it doesn;t recognize them as directories.. Is there any solution to this,

Re: Directory in Windows

2005-04-30 Thread custard_pie
Here's my code filelist={} def listFiles(self, dirName, filesInDir): for fname in filesInDir: if os.path.isfile(fname): key = os.path.join(dirName, fname) stats = os.stat

Displaying formatted - data with TKinter

2005-05-01 Thread custard_pie
Hi,..I found it difficult to display data from a dictionary using GUI. What widget should I use? I tried using text widget, but I couldn't get the display I want. I need the display to look like this file name size agelocation ===

sorting list and then return the index of the sorted item

2005-05-03 Thread custard_pie
I need help sorting a list...I just can't figure out how to sort a list and then return a list with the index of the sorted items in the list for example if the list I want to sort is [2,3,1,4,5] I need [2,0,1,3,4] to be returned Can someone help please -- http://mail.python.org/mailman/listi

Re: sorting list and then return the index of the sorted item

2005-05-03 Thread custard_pie
Okay...THanks a lot everyone,.. Those codes really help -- http://mail.python.org/mailman/listinfo/python-list

Re: sorting list and then return the index of the sorted item

2005-05-03 Thread custard_pie
Okay...THanks a lot everyone,.. Those codes are a real help -- http://mail.python.org/mailman/listinfo/python-list