Re: user rights and python com servers

2010-04-16 Thread sniffer
On Apr 16, 10:48 am, Mark Hammond wrote: > On 16/04/2010 2:40 PM, sniffer wrote: > > > Thanks Mark, > >   just one question does the explanation given above by you also apply > > to winxp systems in a domain, > > Yeah - IIRC, domain users can't change much of the registry by default, > primarily a

Re: user rights and python com servers

2010-04-15 Thread Mark Hammond
On 16/04/2010 2:40 PM, sniffer wrote: Thanks Mark, just one question does the explanation given above by you also apply to winxp systems in a domain, Yeah - IIRC, domain users can't change much of the registry by default, primarily as they aren't in the 'administrators' or 'power user' group

Re: user rights and python com servers

2010-04-15 Thread sniffer
On Apr 16, 6:01 am, Mark Hammond wrote: > On 15/04/2010 6:05 PM, sniffer wrote: > > > hi all, > > i am facing a peculiar problem with a python com server i've developed > > the com server runs fine in winxp  standalone systems but if the > > system is part o

Re: user rights and python com servers

2010-04-15 Thread Mark Hammond
On 15/04/2010 6:05 PM, sniffer wrote: hi all, i am facing a peculiar problem with a python com server i've developed the com server runs fine in winxp standalone systems but if the system is part of a domain then until the logged in user is given power user rights i am unable to registe

user rights and python com servers

2010-04-15 Thread sniffer
hi all, i am facing a peculiar problem with a python com server i've developed the com server runs fine in winxp standalone systems but if the system is part of a domain then until the logged in user is given power user rights i am unable to register the dll using regsvr32 , a similar prob

Re: Connecting to Python COM server from Excel VBA does not work

2009-12-10 Thread diego
the problem was that i had never installed python on my workstation. just had a Python25 folder with a batch-file that was adjustin the PATH and executing %PYTHONHOME%python.exe installed Python properly and now everything works fine -- http://mail.python.org/mailman/listinfo/python-list

Re: Connecting to Python COM server from Excel VBA does not work

2009-12-10 Thread diego
On 10 Dez., 11:52, "Michel Claveau - MVP" wrote: > Hi ! > > Warning with lower/uppercases! > Try to make two versions of your methods (ex.: "add" & "ADD"), for study. > > @+ > -- > MCI The error comes already at the first line of Excel/VBA code: Set ex = CreateObject("MyPython.Example") rgds,e

Re: Connecting to Python COM server from Excel VBA does not work

2009-12-10 Thread diego
On 10 Dez., 11:52, "Michel Claveau - MVP" wrote: > Hi ! > > Warning with lower/uppercases! > Try to make two versions of your methods (ex.: "add" & "ADD"), for study. > > @+ > -- > MCI The error comes already at the first line of Excel/VBA code: Set ex = CreateObject("MyPython.Example") rgds,e

Re: Connecting to Python COM server from Excel VBA does not work

2009-12-10 Thread Michel Claveau - MVP
Hi ! Warning with lower/uppercases! Try to make two versions of your methods (ex.: "add" & "ADD"), for study. @+ -- MCI -- http://mail.python.org/mailman/listinfo/python-list

Connecting to Python COM server from Excel VBA does not work

2009-12-10 Thread diego
I ran this script: --- class Example(object): _public_methods_ = ['Add','Mul'] _reg_progid_ = 'MyPython.Example' _reg_clsid_ = '{E39ECD8C-7FAF-48B0-B914-1202319499D4}' def Add(self,a,b): return a+b def Mul(self,a,b): return a*b if __name__ == '__main__

problem with python com and python extensions

2009-05-31 Thread tristan625
and issuer,everything works fine when i run the code through the interpreter,the problem comes when i create a python com object that imports this extensions functionality,the com dll is created successfully but i am unable to access any of the functions in it . any help will be great -- http

issue - not able to connect to python com server

2009-03-13 Thread Madhubala
Hi , I have an issue regarding connectivity between client and com server. I have a com server implemented in MFC dll having MFC as static library. The requirement is to write python wrapper to it . Using ctypes I wrote a wrapper to MFC dll which exports couple of functions for com initiali

Re: Python COM: Automatic wrap/unwrap?

2008-11-10 Thread Paul Rudin
Tim Golden <[EMAIL PROTECTED]> writes: > greg wrote: >> Larry Bates wrote: >> >>> You should post this on comp.python.windows as Mark and the other >>> Windows/COM gurus hang around there a lot. >> >> I can't find any such newsgroup -- are you sure >> that's what it's called? > > I think that's wh

Re: Python COM: Automatic wrap/unwrap?

2008-11-10 Thread Tim Golden
greg wrote: Larry Bates wrote: You should post this on comp.python.windows as Mark and the other Windows/COM gurus hang around there a lot. I can't find any such newsgroup -- are you sure that's what it's called? I think that's what it's called on gmane (or some other newsgroup gateway). Fr

Re: Python COM: Automatic wrap/unwrap?

2008-11-10 Thread greg
Larry Bates wrote: You should post this on comp.python.windows as Mark and the other Windows/COM gurus hang around there a lot. I can't find any such newsgroup -- are you sure that's what it's called? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM: Automatic wrap/unwrap?

2008-11-09 Thread Larry Bates
Greg Ewing wrote: I'm creating a COM server in Python that will have one main class, with methods that create and return instances of other classes. I've found that I need to use win32com.server.util.wrap and unwrap on these objects when they pass over a COM connection. This doesn't seem very co

Python COM: Automatic wrap/unwrap?

2008-11-07 Thread Greg Ewing
I'm creating a COM server in Python that will have one main class, with methods that create and return instances of other classes. I've found that I need to use win32com.server.util.wrap and unwrap on these objects when they pass over a COM connection. This doesn't seem very convenient, especiall

Re: Python COM

2008-07-29 Thread Larry Bates
[EMAIL PROTECTED] wrote: I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,the second interface's name is IBasicMethod. How do i use those inte

Re: Python COM

2008-07-29 Thread Michel Claveau - NoSpam SVP ; merci
Re! Pywin32 can use dynamic COM server (without tlb). Therefore, I prefer to wait the return from birdprince... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM

2008-07-29 Thread Diez B. Roggisch
M�ta-MCI (MVP) wrote: > Hi! > > Example, with Pywin32: > > import win32com.client > moncom = win32com.client.Dispatch('MyCOM1.AdvMethod') > moncom.IAdvMethod(... > > See Pywin32 here: http://sourceforge.net/projects/pywin32/ That's not working, because the OP has a custom interface, not IDi

Re: Python COM

2008-07-29 Thread M�ta-MCI (MVP)
Hi! Example, with Pywin32: import win32com.client moncom = win32com.client.Dispatch('MyCOM1.AdvMethod') moncom.IAdvMethod(... See Pywin32 here: http://sourceforge.net/projects/pywin32/ @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM

2008-07-29 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,the second interface's name is IBasicMethod. How do i use those in

Python COM

2008-07-29 Thread birdprince
I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,the second interface's name is IBasicMethod. How do i use those interfaces in python.Thank you

python-com and vista

2008-04-08 Thread sniffer
hi all, the problem i am facing is as follows:- i have created a com component in python this registers and works fine on winxp and stuff but on vista i need to turn off user account control to get the component registered and every time i need to use the component i again have to turn it UAC off

Re: placing a Python com object into Excel

2008-03-19 Thread Tim Roberts
Mathew <[EMAIL PROTECTED]> wrote: >Thanks for the tip. But, instead of an AddIn, what if I want to be able >to insert an object? I see that the demo adds items to the windows >registry under \Excel\AddIns. Is there a similar location for the >"Insert Object" command? What you see there is the

Re: placing a Python com object into Excel

2008-03-17 Thread Mathew
Thanks for the tip. But, instead of an AddIn, what if I want to be able to insert an object? I see that the demo adds items to the windows registry under \Excel\AddIns. Is there a similar location for the "Insert Object" command? yikes. More Excel programming than I'd like to know. Mathew M

Re: placing a Python com object into Excel

2008-03-17 Thread M�ta-MCI (MVP)
Hi! Perso, I started from "excelAddin.py" (in C:\Python25\Lib\site-packages\win32com\demos). And, I'm happy with the result (who run OK with Excel 2000, XP, 2007). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: placing a Python com object into Excel

2008-03-17 Thread Michael Wieher
2008/3/17, Mathew <[EMAIL PROTECTED]>: > > Hi > I have seen examples from Mark Hammonds book where a Python COM object > is accessed from Excel with a VBA script. But, what if I want to Insert > a Python COM into the Sheet itself? > > When I try this, a list of avail

placing a Python com object into Excel

2008-03-17 Thread Mathew
Hi I have seen examples from Mark Hammonds book where a Python COM object is accessed from Excel with a VBA script. But, what if I want to Insert a Python COM into the Sheet itself? When I try this, a list of available objects appear. But my object isn't on the list. Anybody have any

Re: Python COM automation - Controlling Microsoft Agent

2008-03-01 Thread Fuzzyman
On Mar 1, 12:47 am, Kamilche <[EMAIL PROTECTED]> wrote: > Here's a snippet of code for pythoners to enjoy. > Make the Microsoft genie speak text and dance about! Code (with pretty pictures!) to do similar things from IronPython: http://www.ironpython.info/index.php/AgentServerObjects Michael F

Re: Python COM automation - Controlling Microsoft Agent

2008-03-01 Thread M�ta-MCI (MVP)
Whaoouuu! A young newbie! Thanks... for others youngs newbies. -- http://mail.python.org/mailman/listinfo/python-list

Python COM automation - Controlling Microsoft Agent

2008-02-29 Thread Kamilche
Here's a snippet of code for pythoners to enjoy. Make the Microsoft genie speak text and dance about! ''' Requires: -- comtypes from: http://starship.python.net/crew/theller/comtypes MS Agent from: http://www.microsoft.com/msagent To do: -- 1. List availab

Re: Submit web form only client-side with Python? COM?

2007-08-05 Thread Jay Loden
Gabriel Genellina wrote: > En Sat, 04 Aug 2007 19:17:35 -0300, Jay Loden <[EMAIL PROTECTED]> > escribió: > >> Paul Rubin wrote: >>> goldtech <[EMAIL PROTECTED]> writes: So I can present the user with an HTML form in it - but how can I write the form data to a local file on my work stat

Re: Submit web form only client-side with Python? COM?

2007-08-05 Thread Gabriel Genellina
En Sat, 04 Aug 2007 19:17:35 -0300, Jay Loden <[EMAIL PROTECTED]> escribió: > Paul Rubin wrote: >> goldtech <[EMAIL PROTECTED]> writes: >>> So I can present the user with an HTML form in it - but how can I >>> write the form data to a local file on my work station? >> >> The simplest way is with

Re: Submit web form only client-side with Python? COM?

2007-08-04 Thread Jay Loden
Paul Rubin wrote: > goldtech <[EMAIL PROTECTED]> writes: >> So I can present the user with an HTML form in it - but how can I >> write the form data to a local file on my work station? > > The simplest way is with the cgi and CGIHTTPServer modules. You'd > write your form in an html file, with th

Re: Submit web form only client-side with Python? COM?

2007-08-04 Thread Paul Rubin
goldtech <[EMAIL PROTECTED]> writes: > So I can present the user with an HTML form in it - but how can I > write the form data to a local file on my work station? The simplest way is with the cgi and CGIHTTPServer modules. You'd write your form in an html file, with the target set to a Python scr

Submit web form only client-side with Python? COM?

2007-08-04 Thread goldtech
Say I have have an HTML form , the user hits the submit button and I what text they enetered into a HTML form field is written to a file. But I don't have PHP, JAVA the usual client or server sided layers to write the data to a file, and I'm not to keen on JavaScript. Note: I can not add or downlo

Re: VB frontend to Python COM backend

2007-07-06 Thread nik
Thank you for the lead. That is exactly what I was wishing for. Thank you, Nik -- http://mail.python.org/mailman/listinfo/python-list

Re: VB frontend to Python COM backend

2007-07-06 Thread Harry George
nik <[EMAIL PROTECTED]> writes: > I have a VB6 application that I would like to attach to a python > communications application. > > I have come across several discussions on using VB with a Python COM > back-end, but no starting point. I haven't had anymore luck with &g

Re: VB frontend to Python COM backend

2007-07-06 Thread Giles Brown
On 6 Jul, 06:58, nik <[EMAIL PROTECTED]> wrote: > I have a VB6 application that I would like to attach to a python > communications application. > > I have come across several discussions on using VB with a Python COM > back-end, but no starting point. I haven't had any

VB frontend to Python COM backend

2007-07-05 Thread nik
I have a VB6 application that I would like to attach to a python communications application. I have come across several discussions on using VB with a Python COM back-end, but no starting point. I haven't had anymore luck with google at finding out what this method is called and where to

Re: passing an array of variant in vb to a python COM object = win32com bug ?

2007-05-04 Thread vml
-0300,vml<[EMAIL PROTECTED]> > >> escribió: > > >> > I have a python com object which contains a method to inverse an array > >> > in vb 6 the definition of the class is : > > > I just tried to replace the *val by SqVal(self,val) and call the >

Re: passing an array of variant in vb to a python COM object = win32com bug ?

2007-05-03 Thread Gabriel Genellina
En Thu, 03 May 2007 09:41:57 -0300, vml <[EMAIL PROTECTED]> escribió: > On 3 mai, 14:20, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> En Thu, 03 May 2007 04:54:43 -0300, vml <[EMAIL PROTECTED]> >> escribió: >> >> > I have a pyt

Re: passing an array of variant in vb to a python COM object = win32com bug ?

2007-05-03 Thread Larry Bates
vml wrote: > On 3 mai, 14:20, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> En Thu, 03 May 2007 04:54:43 -0300, vml <[EMAIL PROTECTED]> escribió: >> >> >> >>> I have a python com object which contains a method to inverse an array

Re: passing an array of variant in vb to a python COM object = win32com bug ?

2007-05-03 Thread vml
On 3 mai, 14:20, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 03 May 2007 04:54:43 -0300, vml <[EMAIL PROTECTED]> escribió: > > > > > I have a python com object which contains a method to inverse an array > > in vb 6 th

Re: passing an array of variant in vb to a python COM object = win32com bug ?

2007-05-03 Thread Gabriel Genellina
En Thu, 03 May 2007 04:54:43 -0300, vml <[EMAIL PROTECTED]> escribió: > I have a python com object which contains a method to inverse an array > in vb 6 the definition of the class is : > > class Fop: > _public_methods_ = [ 'SqVal' ] > def SqVal(self,*val

passing an array of variant in vb to a python COM object = win32com bug ?

2007-05-03 Thread vml
I have a python com object which contains a method to inverse an array in vb 6 the definition of the class is : class Fop: _public_methods_ = [ 'SqVal' ] def SqVal(self,*val): #vol=(val[0][0],val[0][1]) #mat1=mat((vol)) #up=linalg.inv(mat1) retu

Python COM and Delphi callback

2007-05-02 Thread Larry Bates
I have a Python COM object working. I want to pass to it a Delphi callback function (showing progress) that I can call periodically. I've Googled until I'm cross-eyed and I'm getting nowhere. Anybody out there that could give me a push in the right direction. I tried passin

Re: Python COM iterator

2007-04-19 Thread Steve Holden
Ross Ridge wrote: > Larry Bates wrote: >> I tested in VB and by golly it works! What is odd is that this looks >> NOTHING like what we got from the docs earlier. No GetEnumerator >> method, no MoveNext method. I'm glad it works, but I'm a little >> puzzled as to why it works. > > The documentio

Re: Python COM iterator

2007-04-19 Thread Ross Ridge
Larry Bates wrote: > I tested in VB and by golly it works! What is odd is that this looks > NOTHING like what we got from the docs earlier. No GetEnumerator > method, no MoveNext method. I'm glad it works, but I'm a little > puzzled as to why it works. The documention Carsten Haese referenced e

Re: Python COM iterator

2007-04-19 Thread Carsten Haese
On Thu, 2007-04-19 at 12:49 -0400, Steve Holden wrote: > Larry Bates wrote: > > Carsten Haese wrote: > [iterative acess to COM objects] > > I tested in VB and by golly it works! What is odd is that this looks > > NOTHING like what we got from the docs earlier. No GetEnumerator > > method, no Move

Re: Python COM iterator

2007-04-19 Thread Steve Holden
Larry Bates wrote: > Carsten Haese wrote: [iterative acess to COM objects] > I tested in VB and by golly it works! What is odd is that this looks > NOTHING like what we got from the docs earlier. No GetEnumerator > method, no MoveNext method. I'm glad it works, but I'm a little > puzzled as to w

Re: Python COM iterator

2007-04-19 Thread Larry Bates
Carsten Haese wrote: >> [...] >>> On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: >>>> Does anyone know if there is a way to make a Python COM object >>>> act like a proper iterator in VB/Delphi? >> [...] > > After more googling, starin

Re: Python COM iterator

2007-04-18 Thread Carsten Haese
>[...] > > On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: > >> Does anyone know if there is a way to make a Python COM object > >> act like a proper iterator in VB/Delphi? >[...] After more googling, staring at win32com's code, and a fair bit of tri

Re: Python COM iterator

2007-04-18 Thread Larry Bates
Carsten Haese wrote: > On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: >> Does anyone know if there is a way to make a Python COM object >> act like a proper iterator in VB/Delphi? > > I don't use COM, VB, or Delphi, but Google turned up these two > references

Re: Python COM iterator

2007-04-17 Thread Carsten Haese
On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: > Does anyone know if there is a way to make a Python COM object > act like a proper iterator in VB/Delphi? I don't use COM, VB, or Delphi, but Google turned up these two references: http://msdn.microsoft.com/library/default.asp?u

Python COM iterator

2007-04-17 Thread Larry Bates
Does anyone know if there is a way to make a Python COM object act like a proper iterator in VB/Delphi? Example: Python COM object class foo: _public_methods_=['next'] def __init__(self): self.numbers=[1,2,3,4,5,6,7,8] def next(self): t

RE: Python COM Outlook Question

2007-03-21 Thread Patrick Vrijlandt
Hi, It seems that space.Folders["DailyGoodEmails"] might be a valid expression; otherwise you might have experiment with space.GetSharedDefaultFolder() HTH, Patrick -Oorspronkelijk bericht- On Mar 21, 2:15 pm, "liam_herron" <[EMAIL PROTECTED]> wrote: > Say I want to open a shared email

Re: Python COM Outlook Question

2007-03-21 Thread kyosohma
On Mar 21, 2:15 pm, "liam_herron" <[EMAIL PROTECTED]> wrote: > Say I want to open a shared email inbox (named "DailyGoodEmails") that > is different from my default Outlook inbox, how do I specify this? > > Currently, I would do: > > s = Dispatch("Outlook.Application") > space = s.GetNameSpace("MAP

Python COM Outlook Question

2007-03-21 Thread liam_herron
Say I want to open a shared email inbox (named "DailyGoodEmails") that is different from my default Outlook inbox, how do I specify this? Currently, I would do: s = Dispatch("Outlook.Application") space = s.GetNameSpace("MAPI") inbox = space.GetDefaultFolder(6) myFolder = inbox.Folders[9] #open

Re: Python COM called from VB/Delphi

2007-03-16 Thread Jorge Mazzonelli
l OLE types work fine. (Variants are a bit hard to process, yes, but it can be done) > Secondly, I need a callback function in VB (progress > meter) that I can pass to Python COM object to show Sorry, I try to stay away of VB as far as possible :) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM called from VB/Delphi

2007-03-15 Thread Gabriel Genellina
Secondly, I need a callback function in VB (progress > meter) that I can pass to Python COM object to show Sorry, I try to stay away of VB as far as possible :) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM called from VB/Delphi

2007-03-15 Thread Michał Zaborowski
ds from Delphi. Also - it is possible to create Python class with underlying Delphi code. > Secondly, I need a callback function in VB (progress > meter) that I can pass to Python COM object to show > progress of https: uploads. I've tried a bunch of > different things, but am ge

Python COM called from VB/Delphi

2007-03-14 Thread Larry Bates
has" about the way arguments or return values would need to be different for Delphi. I have NO Delphi experience so I'm completely lost. Secondly, I need a callback function in VB (progress meter) that I can pass to Python COM object to show progress of https: uploads. I've tried a

Re: Restart a Python COM Server

2006-10-18 Thread m . errami
> > 3- I then want to modify the function in the python COM server > > 4- I unregister the server and register it again hoping the changes > > will take effect > > 5- I make call to the function from VBE but the it seems that VBE > > doesn't reload/refresh the ref

Re: Restart a Python COM Server

2006-10-18 Thread olsongt
verything works > fine > 3- I then want to modify the function in the python COM server > 4- I unregister the server and register it again hoping the changes > will take effect > 5- I make call to the function from VBE but the it seems that VBE > doesn't reload/refresh the reference

Re: Restart a Python COM Server

2006-10-18 Thread m . errami
OK, well thank you for your help (merci pour ton aide!) M.E. MC wrote: > Hi! > > It is the normal behavior of COM. > > Note that, Python being dynamic, you can modify Python script, OF THE > INTERIOR, during execution. > > -- > @-salutations > > Michel Claveau -- http://mail.python.org/mailm

Re: Restart a Python COM Server

2006-10-17 Thread MC
Hi! It is the normal behavior of COM. Note that, Python being dynamic, you can modify Python script, OF THE INTERIOR, during execution. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Restart a Python COM Server

2006-10-17 Thread m . errami
function in the python COM server 4- I unregister the server and register it again hoping the changes will take effect 5- I make call to the function from VBE but the it seems that VBE doesn't reload/refresh the reference to the server. So I do I get VBE to point to the last version of the server?

RE: how to use python com server in c++?

2006-08-21 Thread Stefan Schukat
Result); Stefan > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Leo Jay > Sent: Saturday, August 19, 2006 5:23 PM > To: python-list@python.org > Subject: how to use python com server in c++? > > dear all, &

Re: how to use python com server in c++?

2006-08-19 Thread Butternut Squash
Leo Jay wrote: > dear all, > i have a python com server like this: > > import win32com.server.register > > class HelloWorld: > _reg_clsid_ = "{B0EB5AAB-0465-4D54-9CF9-04ADF7F73E4E}" > _reg_desc_ = 'Python test com server' &

how to use python com server in c++?

2006-08-19 Thread Leo Jay
dear all, i have a python com server like this: import win32com.server.register class HelloWorld: _reg_clsid_ = "{B0EB5AAB-0465-4D54-9CF9-04ADF7F73E4E}" _reg_desc_ = 'Python test com server' _reg_progid_= "Leojay.ComServer"

Re: Help with conversion VB script to Python : COM objects

2006-06-27 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I need to re-write a VB script into Python (because I really don't like > VB). > > The VB script is used to create a Windows COM object. > (I am more of Unix guy, so COM objects are a little bit alien for me). > > At a certain p

Help with conversion VB script to Python : COM objects

2006-06-26 Thread mitsura
Hi, I need to re-write a VB script into Python (because I really don't like VB). The VB script is used to create a Windows COM object. (I am more of Unix guy, so COM objects are a little bit alien for me). At a certain point in the VB script, I have the following line: objPolTypes = objPmad.Cvar

Re: Sending an event from a python COM server to a VB COM client

2005-11-16 Thread Josef Meile
Hi Gary, > I am trying to send an event from a Python COM server to a VB (or VB.NET) > COM client. > I am a newbie both in VB and in python. > Can anyone give me a simple (but complete) code example both of the Python > server side and the VB client side for raising a single eve

Re: Sending an event from a python COM server to a VB COM client

2005-11-16 Thread Gary Kshepitzki
time to answer. Gary "Stephen Prinster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gary Kshepitzki wrote: >> Hello >> I am trying to send an event from a Python COM server to a VB (or VB.NET) >> COM client. >> I am a newbie both in VB an

Re: Sending an event from a python COM server to a VB COM client

2005-11-15 Thread Stephen Prinster
Gary Kshepitzki wrote: > Hello > I am trying to send an event from a Python COM server to a VB (or VB.NET) > COM client. > I am a newbie both in VB and in python. > Can anyone give me a simple (but complete) code example both of the Python > server side and the VB client

Sending an event from a python COM server to a VB COM client

2005-11-15 Thread Gary Kshepitzki
Hello I am trying to send an event from a Python COM server to a VB (or VB.NET) COM client. I am a newbie both in VB and in python. Can anyone give me a simple (but complete) code example both of the Python server side and the VB client side for raising a single event. Any answer would be

RE: Python, COM Servers, and Multi-Threading

2005-11-07 Thread Stefan Schukat
--- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Carl Waldbieser > Sent: Tuesday, October 11, 2005 12:46 AM > To: python-list@python.org > Subject: Python, COM Servers, and Multi-Threading > > I have been considering using Python and the Reportlab

Data Type Problem in Python / COM

2005-11-07 Thread Olav
I'm trying to use Python / COM to do some drawing automation. Here is a simple code example: This code uses a object made by the Opendwg-org. Autocad has a similar object with the same methods - and the same result. --- import win32com.client odaHost=win32com.client.dynamic.Dis

Re: Python, COM Servers, and Multi-Threading

2005-10-10 Thread Steve Holden
program that launches the tasks > requires a COM-based interface, so I wrote a Python COM server using Mark > Hammond's PythonCom libraries and import and run the reporlab modules from > there. > Have you selected a specific threading model for your COM server? This will aff

Python, COM Servers, and Multi-Threading

2005-10-10 Thread Carl Waldbieser
COM-based interface, so I wrote a Python COM server using Mark Hammond's PythonCom libraries and import and run the reporlab modules from there. I had been reading up on Python and it's handling of the multiple threads, specifically the Global Interpreter Lock (GIL). I got to wondering

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
ject) >> >> >> Stefan >> >> > -Original Message- >> > From: [EMAIL PROTECTED] >> > [mailto:[EMAIL PROTECTED] Behalf Of >> > Philippe C. Martin >> > Sent: Thursday, July 21, 2005 1:42 AM >> > To: python-list@python.or

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
L PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of > > Philippe C. Martin > > Sent: Thursday, July 21, 2005 1:42 AM > > To: python-list@python.org > > Subject: Re: returning list of strings from Python COM to > > Visual basic 6 > > > > > > I ca

RE: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Stefan Schukat
1, 2005 1:42 AM > To: python-list@python.org > Subject: Re: returning list of strings from Python COM to > Visual basic 6 > > > I can now pass and return quite a few types except object > instances: my > python code gets to the point where I do: > > > def G

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
I can now pass and return quite a few types except object instances: my python code gets to the point where I do: def Get_Obj(self): . return an_object My VB code looks like Dim obj as Variant obj = acom.Get_Obj() I get an "unexpected Python error . Objects of type 'instance'

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Sorry, it was in the book: Variant ! Regards; Philippe Philippe C. Martin wrote: > Hi, > > Is it possible ? > > ex: return ['1','2'] > > If so which type should I use in VB ? > > dim res as ??? > > Set testObj = CreateObject("") > > res = testObj.AMethodThatReturnsAListOfStrings

returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Hi, Is it possible ? ex: return ['1','2'] If so which type should I use in VB ? dim res as ??? Set testObj = CreateObject("") res = testObj.AMethodThatReturnsAListOfStrings() Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM Class Question

2005-03-09 Thread Steve Holden
pemo wrote: I'm trying to use difflib.py from a COM aware language - and, for ease of use, I'm initially trying to get this going from VB6. I've wrappered difflib.py correctly I think, and I can now call into it and call a global method (called 'test' of course). Here's the consuming code:

Python COM Class Question

2005-03-09 Thread pemo
I'm trying to use difflib.py from a COM aware language - and, for ease of use, I'm initially trying to get this going from VB6. I've wrappered difflib.py correctly I think, and I can now call into it and call a global method (called 'test' of course). Here's the consuming code: Dim PythonU

Python COM API binding job offer

2005-03-02 Thread Guy Robinson
download the parent application and API documentation then attempt to get to first base for me and provide a proof of concept. You would need to have good python, COM knowledge. I'm agnostic as to it being a win32com or a ctypes binding. The API is from a large multinational Company.And the A

Re: Python COM Makepy Excel 9.0 error

2005-02-10 Thread Chris
Thank you! That did the trick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM Makepy Excel 9.0 error

2005-02-10 Thread Jim Sizelove
[EMAIL PROTECTED] wrote: Has anyone seen this? When I run the COM Makepy utility and choose Microsoft Excel 9.0 Object Library (1.3), I get an application error message: PythonWin: Pythonwin.exe - Application Error The instruction at "0x77fcc87" referenced memory at "0x0307a705". The memory could

Python COM Makepy Excel 9.0 error

2005-02-10 Thread nvhengr
Has anyone seen this? When I run the COM Makepy utility and choose Microsoft Excel 9.0 Object Library (1.3), I get an application error message: PythonWin: Pythonwin.exe - Application Error The instruction at "0x77fcc87" referenced memory at "0x0307a705". The memory could not be "read". I do no

Re: Please help here: python <==> COM

2004-12-05 Thread Ishwor
heheh... this was funny in your posting. :) >The following *pythong* ( so this is what a Python wearing a thong is called .. > hmmm...) code NOT work.. On Sun, 5 Dec 2004 16:18:33 +0800, mep <[EMAIL PROTECTED]> wrote: > Resolved. Thanks anyway [snip] -- cheers, Ishwor Gurung -- http://mail.

Re: Please help here: python <==> COM

2004-12-05 Thread mep
Resolved. Thanks anyway -- Best Regards, Wang Kebo http://www.huihoo.org/~mep "mep" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi,all > I'm scripting flashget (A download management tool, > http://www.amazesoft.com/) using > python win32 extension, opening a downloading

Please help here: python <==> COM

2004-12-04 Thread mep
Hi,all I'm scripting flashget (A download management tool, http://www.amazesoft.com/) using python win32 extension, opening a downloading dialog. The following pythong code NOT work: CODE BEGIN #!/usr/bin/env python # -*- coding: cp936 -*- import win32com.client flashget = win32co