logo       

Catching NavigateError in test_browser.py: msg#00018

python.ctypes

Subject: Catching NavigateError in test_browser.py

Sorry for the cross-post to ctypes. Venster list seems to be very idle.



I'm trying to catch NavigateError events in test_browser.

In testing, I added this to the browserWindow class

def NavigateError(self, this, pDisp, URL, targetFrameName, statusCode,
Cancel):


1. what is "this" ?

2. Cancel is Python type bool, but I'm looking for a POINTER(c_int) as
described in ie6_gen


DISPMETHOD(0x10f, None, "NavigateError", POINTER(IDispatch),
POINTER(VARIANT), POINTER(VARIANT), POINTER(VARIANT), POINTER(c_int)),


I need to set Cancel.value = 1

How is it that Cancel is being converted to a bool? I how can I set it's value
by reference?

Thanks for ideas



--
Brad Clements, bkc@xxxxxxxxxxxxx (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
http://www.wecanstopspam.org/ AOL-IM: BKClements



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise