FYI, The current version in the repo works on firefox and chrome.

On Monday, August 13, 2012 3:10:24 AM UTC-5, Cesare Di Mauro wrote:
>
> Trying with pyjd (on Python 2.6.4, Pyjamas 0.8) raises other problems:
>
> d:\Dropbox\pyjamas\v8\examples\mail>D:\Dropbox\pyjamas\v8\bin\pyjd.bat 
> Mail.py
> d:\Dropbox\pyjamas\v8\pyjd\imputil.py:329: DeprecationWarning: the sets 
> module is deprecated
> exec code in module.__dict__
> NavigateComplete2 (<POINTER(IWebBrowser2) ptr=0x54aec8 at 58f8b20>,VARIANT
> (vt=0x400c, byref(u'about:blank')))
> DocumentComplete (<POINTER(IWebBrowser2) ptr=0x54aec8 at 58f8ad0>, VARIANT
> (vt=0x400c, byref(u'about:blank')))
> BeforeNavigate2 (<POINTER(IWebBrowser2) ptr=0x54aec8 at 58f8a30>, VARIANT(
> vt=0x400c, byref(u
> 'D:\\Dropbox\\pyjamas\\v8\\examples\\mail\\public\\Mail.html')), VARIANT(
> vt=0x400c, byref(0)), VARIANT(vt=0x400c, byref(None)), VARIANT(vt=0x400c,byref
> (VARIANT(vt=0x400c, byref(None)))), VARIANT(vt=0x400c, byref(None)),VARIANT
> (vt=0x400b, byref(False)))
> NavigateComplete2 (<POINTER(IWebBrowser2) ptr=0x54aec8 at 58f8c60>,VARIANT
> (vt=0x400c, byref(u
> 'D:\\Dropbox\\pyjamas\\v8\\examples\\mail\\public\\Mail.html')))
>
> DocumentComplete (<POINTER(IWebBrowser2) ptr=0x54aec8 at 58f8440>, VARIANT
> (vt=0x400c, byref(u
> 'D:\\Dropbox\\pyjamas\\v8\\examples\\mail\\public\\Mail.html')))
> set_main_frame <pyjd.mshtml.Browser object at 0x05346FB0>
> Traceback (most recent call last):
>   File "d:\Dropbox\pyjamas\v8\pyjd\mshtml.py", line 449, in run
>     MainWin(one_event) # TODO: ignore block arg for now
>   File "d:\Dropbox\pyjamas\v8\pyjd\mshtml.py", line 420, in MainWin
>     fn()
>   File "d:\Dropbox\pyjamas\v8\library\gwt\Timer.py", line 121, in <lambda.
> 1>
>     self.__onTimer = lambda: run(self)
>   File "d:\Dropbox\pyjamas\v8\library\gwt\DeferredCommand.py", line 31, 
> inonTimer
>     flushDeferredCommands()
>   File "d:\Dropbox\pyjamas\v8\library\gwt\DeferredCommand.py", line 17, 
> influshDeferredCommands
>     current.execute()
>   File "Mail.py", line 73, in execute
>     self.onWindowResized(Window.getClientWidth(), Window.getClientHeight
> ())
>   File "Mail.py", line 86, in onWindowResized
>     self.mailDetail.adjustSize(width, height)
>   File "d:\Dropbox\pyjamas\v8\examples\mail\MailDetail.py", line 61, 
> inadjustSize
>     self.scroller.setSize("%d" % scrollWidth, "%d" % scrollHeight)
>   File "d:\Dropbox\pyjamas\v8\library\gwt\ui\UIObject.py", line 143, insetSize
>     self.setWidth(width)
>   File "d:\Dropbox\pyjamas\v8\library\gwt\ui\UIObject.py", line 207, 
> insetWidth
>     DOM.setStyleAttribute(self.element, "width", str(width))
>   File "d:\Dropbox\pyjamas\v8\library\gwt\DOM.py", line 897, 
> insetStyleAttribute
>     element.style.setProperty(mash_name_for_glib(name), value, "")
>   File "d:\Dropbox\Python26\lib\site-packages\comtypes\client\lazybind.py"
> , line 163, in caller
>     return self._comobj._invoke(descr.memid, descr.invkind, 0, *args)
>   File "d:\Dropbox\Python26\lib\site-packages\comtypes\automation.py",line 
> 664, in _invoke
>     dp, var, None, argerr)
> COMError: (-2147024809, 'Parametro non corretto.', (None, None, None, 0, 
> None))
> Traceback (most recent call last):
>   File "Mail.py", line 95, in <module>
>     pyjd.run()
>   File "d:\Dropbox\pyjamas\v8\pyjd\mshtml.py", line 451, in run
>     sys.stderr.write( traceback.print_exc() )
> TypeError: argument 1 must be string or read-only character buffer, not 
> None
>
> Il giorno lunedì 13 agosto 2012 09:46:01 UTC+2, Cesare Di Mauro ha scritto:
>
>> Hi,
>>
>> The Mail example <http://pyjs.org/examples/Mail.html> doesn't work 
>> anymore.
>>
>> IE9 it gives a blank Page.
>> Opera 12 raises an alert with the following message: "Mail TypeError: 
>> __init__() takes exactly 1 argument (3 given)"
>>
>> Cheers,
>> Cesare
>>
>

-- 



Reply via email to