[Tutor] wx.Notebook query in wxpython

2006-08-10 Thread Amresh Kulkarni
Hi all,I am developing a GUI which has a notebook with multiple tabs. The tabs are formed by adding pages to the notebook.I have a check menu to select/deselect the tabs(pages) i want. On checking on an item it will must show the respective tab and unchecking should hide it. Simple as it may sound,

Re: [Tutor] Delete directories recursively

2006-06-16 Thread Amresh Kulkarni
Thanks guys,Error handling seems to be a nice idea to approach this problem. i checked Kent's code and it works fine.I was using a more crude method.def removeDir(dirName) :    #Remove any read-only permissions on file.     removePermissions(dirName)    for name in os.listdir(dirName):    file

[Tutor] Delete directories recursively

2006-06-16 Thread Amresh Kulkarni
Hi,I need to delete a directory and its sub directories. However all dir's, sub dir;s and files have read only access. How do i do this efficeintly using the os.walk command. I cannot run this command on the dir as it gives me an error due to the read only attribute. Is there any other way to do th