Re: [python-win32] How to create a com_record?

2008-01-31 Thread Mark Hammond
The record will be defined in a typelib somewhere, and have named elements. For example, the win32com test VB code: Public Type VBStruct int_val As Integer str_val As String ob_val As Object sub_val As SubStruct End Type And VB arranges for that to become a COM record.

[python-win32] How to create a com_record?

2008-01-31 Thread Kevin Patterson
I have a COM server that is expecting a GUID as an argument. The generated makepy shows that the function is expecting a VT_RECORD. I cannot seem to pass in the CLSID, I get the following: TypeError: Only com_record objects can be used as records I looked at the win32com.client.Record function, b

[python-win32] parameters got changed after passing to a function through COM

2008-01-31 Thread Chen Huang
Hello all, I am experiencing a weird problem when using third-party software through COM. There is an API function X belongs to Object A from that third-party software. I use python generated COM interface and use dispatch to get that Object A. Then I call that function X in python. The function

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Tony Cappellini
Why not just format the entire column as string data, before calling Python? That's just requires a few menu clicks, then pass that column to Python. Another option is to use a Python library called xlrd, which reads Excel (.XLS) files from Python. This way you can avoid using COM and the need to

Re: [python-win32] COM server support on Vista

2008-01-31 Thread Michel Claveau
Hi! Because Protected mode need to activate UAC, I prefer to test (to try) on a virtual-PC. I have done a Vista-premium with UAC on, Security center on, Protected mode on. In the passing, I benefitted from it to test my procedures of installation for Vista. Results : iebutton: install OK

Re: [python-win32] python-win32 Digest, Vol 58, Issue 53

2008-01-31 Thread Mike Driscoll
Hi, Are you wanting to use Python in Excel instead of VBA? There's a thread about just that sort of thing here: http://www.velocityreviews.com/forums/t319222-re-python-in-excel.html Otherwise you'll need to figure out how to use VBA to do some kind of Python voodoo to check the data type. I supp

Re: [python-win32] COM server support on Vista

2008-01-31 Thread Amish Shah
Greetings Friends, I'm having a problem with IE7 on Vista under "Protected mode". The python win32com sample "ietoolbar" even doesn't load under protected mode enable condition on IE7 vista. Are your plug-ins for Internet Explorer (IE7) working on Vista "Protected Mode" enable (on) ? If yes, c

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Pallavi Apotikar
I know how to write the macro using VB, but I don't know how to do the same thing using python -- where is the option available etc. Can you give me any reference? Thanks and Regards. Pallavi Ajabrao Apotikar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com

Re: [python-win32] How to get the dynamic parts of the url, with python ?

2008-01-31 Thread Michael Foord
Tova Sirkis wrote: > urllib2.urlopen(url) only returns the static part of the url. > Is it possible, with python, to get the dynamic parts of the url, too? > (for example ads) > If yes, how? It is possible - although can be difficult as ads are usually fetched with Javascript. You can certainl

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Graeme Glass
On Jan 31, 2008 12:36 PM, Pallavi Apotikar <[EMAIL PROTECTED]> wrote: > > Actually, I have an excel sheet, where I am entering the data. > > I am reading the entered data in python. > > excel takes data as a string. > > before passing it to python, i wanted to check whether the entered > data(valu

[python-win32] How to get the dynamic parts of the url, with python ?

2008-01-31 Thread Tova Sirkis
urllib2.urlopen(url) only returns the static part of the url. Is it possible, with python, to get the dynamic parts of the url, too? (for example ads) If yes, how? Thanks Tova Sirkis ___ python-win32 mailing list python-win32@python.org http://mail.py

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Pallavi Apotikar
Actually, I have an excel sheet, where I am entering the data. I am reading the entered data in python. excel takes data as a string. before passing it to python, i wanted to check whether the entered data(value) is a valid python data type. so instead of checking this in python script(/ say

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Graeme Glass
On Jan 31, 2008 11:43 AM, Pallavi Apotikar <[EMAIL PROTECTED]> wrote: > > Hello Sir/Madam, > > I would like to know, is it possible to read a python file from an excel > sheet ? > > Thanks and Regards > > Pallavi Ajabrao Apotikar > I don't fully understand what you are asking, But... If you wh

[python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Pallavi Apotikar
Hello Sir/Madam, I would like to know, is it possible to read a python file from an excel sheet ? Thanks and Regards Pallavi Ajabrao Apotikar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Experience certainty. I

Re: [python-win32] Parameter problem

2008-01-31 Thread Mark Hammond
It would be good if you knew the IDL signature of the args - its not clear if they are truly byref, or simply "out". Named params might also be getting in the way. Try these - one might work :) GetCentroid(first, scnd) GetCentroid() GetCentroid(pythoncom.Missing, pythoncom.Missing) M