Re: [python-win32] win32com IE OnBeforeNavigate2: How to Cancel?

2010-02-25 Thread Robert
oh, found I have to return a 7-tuple with Cancel as last one return None, None, None, None, None, None, args.Cancel Robert wrote: class MyWebBrowser(activex.Control, WebBrowserModule.WebBrowser): def OnBeforeNavigate2(self, pDisp, URL, Flags, TargetFrameName, PostData, Headers, Cancel)

[python-win32] win32com IE OnBeforeNavigate2: How to Cancel?

2010-02-25 Thread Robert
class MyWebBrowser(activex.Control, WebBrowserModule.WebBrowser): def OnBeforeNavigate2(self, pDisp, URL, Flags, TargetFrameName, PostData, Headers, Cancel): ... Cancel is a simple Python bool. Unlike in MFC CHtmlView::OnBeforeNavigate2 I cannot send a value back by ref this way.

Re: [python-win32] wmi error

2010-02-25 Thread Tim Golden
On 25/02/2010 09:55, Christophe Deze wrote: Le 24/02/2010 20:18, Tim Roberts a écrit : Christophe Deze wrote: i'm looking for information about this error Traceback (most recent call last): File "Frame1.pyo", line 235, in run File "wmi.pyo", line 1267, in connect File "wmi.pyo", l

Re: [python-win32] wmi error

2010-02-25 Thread Christophe Deze
Le 24/02/2010 20:18, Tim Roberts a écrit : Christophe Deze wrote: i'm looking for information about this error Traceback (most recent call last): File "Frame1.pyo", line 235, in run File "wmi.pyo", line 1267, in connect File "wmi.pyo", line 241, in handle_com_error x_wmi: it run f