Markus,
Assuming we're talking about the same thing, here's what I do for IE -
import wx
from wxPython.lib.activexwrapper import MakeActiveXClass
from win32com.client import gencache
from py2js import Py2Js
import pythoncom, win32com
def makeIeClass(cls):
ie = gencache.EnsureModule('{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}', 0,
1, 1)
return MakeActiveXClass(ie.WebBrowser, eventClass=None, eventObj=cls)
class IeEvents:
def __init__(self, app):
self.app = app
def OnDocumentComplete(self, pDisp=None, URL=None):
doc = win32com.client.Dispatch(pDisp).Document
self.jsCommLink = Py2Js(doc, self.app)
Harald
···
-----Original Message-----
From: Markus Meyer [mailto:meyer@mesw.de]
Sent: söndag, 25 september 2005 23:50
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Properties of ActiveX not imported
Replying to myself here...
Apparently, this is a known issue in wxActiveX:
http://sourceforge.net/tracker/index.php?func=detail&aid=1280715&group_id=12
4022&atid=698248
I'd still like to know how a possible workaround may look, e.g.
getting/setting property over the generic IDispatch interface, or using
another wrapper...
Markus
Markus Meyer schrieb:
Hello everyone,
I'm trying to use wx.activex.ActiveXWindow to access Active X controls
I wrote in MFC (back in Visual C++ 6.0 days). I can use the controls
just fine, I can call methods and hook into events, but I can access
no properties at all. When I use "genaxmodule.py" to automatically
create a wrapper, no properties are exposed. When I try to use the
GetAXProp() and SetAXProp() methods they always throw an exception
indicating that the specified property does not exist. Those are a
bunch of controls, and all methods, events and properties were added
using the MFC application wizard, so there presumably are no "dirty
tricks" involved. Furthermore, those controls work fine when imported
into Visual Basic or Visual C++.Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org