Re: [Tutor] Excel files to Tab delim files

2006-01-06 Thread Carlo Capuano
Hi, If you run python on windows, you may also take the control of office (word,excel) and may others tools, for example image you have a mysheet.xls in C import pythoncom, win32com.client,os pythoncom.CoInitializeEx(pythoncom.COINIT_APARTMENTTHREADED) excelapp = win32com.client.gencache.Ensure

Re: [Tutor] "while" loop for satisfing two conditions , advice requested

2006-01-15 Thread Carlo Capuano
Hi >while (condition no 1) & (condition no2): > print "Results" > While (condition no 1) and (condition no2): print "Results" in python you use the words and, or, not, is like: if myvar1 is not None and myvar2 == '1': print 'what a nice snowing day!' Carlo what

[Tutor] grab a secodary window content

2006-03-27 Thread Carlo Capuano
Hi to all! I'm playing around with VideoCapture and vpython, both open a secondary window with nice images on it, well the one with my face is not so great, anyway I wish to grab the content and put it into a PIL Image, in VideoCapture there are a methods called saveSnapshot and getImage, but some

Re: [Tutor] Space the final frontier!

2006-04-05 Thread Carlo Capuano
Hi! > I am having difficulty removing white spaces from my file. The file is > 999 line = line.replace(' ','') should do the work Carlo. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] parsing

2006-07-13 Thread Carlo Capuano
Hi! Give a look at http://www.crummy.com/software/BeautifulSoup/ BeautifulSoup is a python module designed for parsing html Carlo what is ITER? www.iter.org >> >> First, excuse me my English... English is not my native >>language, but >> I hope >> th