Re: doing cross platform file work

2011-06-23 Thread Gurpreet Singh
File system paths are a thing you need to take care moving from one OS to other. Perhaps simplest way to avoid this in windows is install cygwin and enjoy. Keep your accessible files in directories /var or /home which are common (but not in something like /cygdrive/c - Cygwin equilvalent of C:) -

Re: How to iterate on a changing dictionary

2011-06-21 Thread Gurpreet Singh
Perhaps this is the simplest and best solution which appears in this case. Just copy the desired items to a new dictionary and discard the original one. import re myDict={'a':'alpha','b':'beta','c':'charley','d':'disney'} myNewDict={} for k,v in myDict.iteritems(): if re.search("a",v)!=None:

Simple Tkinter Progress Bar

2007-05-10 Thread Gurpreet Singh
Hi I am a newbie in Python I am creating a simple Tkinter based application. I have written Tkinter GUI source code and the programme logic in the same .py file. I am searching for a way to implement a simple Progress bar for my application. Are there any simple ways of doin it.

Leaving Python List

2007-05-02 Thread Gurpreet Singh
This mail is to confirm that i want to leave the python list. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list