On 02/28/2012 03:08 PM, Rich Newpol wrote:
ANd also - here is the error *I* am seeing:
$ python GWTCanvasDemo.py
NavigateComplete2 (<POINTER(IWebBrowser2) ptr=0x62def0 at 4521ee0>,
VARIANT(vt=0
x400c, byref(u'about:blank')))
DocumentComplete (<POINTER(IWebBrowser2) ptr=0x62def0 at 4521d50>,
VARIANT(vt=0x
400c, byref(u'about:blank')))
BeforeNavigate2 (<POINTER(IWebBrowser2) ptr=0x62def0 at 4521f30>,
VARIANT(vt=0x4
00c,
byref(u'C:\\pyjamas\\examples\\gwtcanvas\\public\\GWTCanvasDemo.html')),
VA
RIANT(vt=0x400c, byref(0)), VARIANT(vt=0x400c, byref(None)),
VARIANT(vt=0x400c,
byref(VARIANT(vt=0x400c, byref(None)))), VARIANT(vt=0x400c,
byref(None)), VARIAN
T(vt=0x400b, byref(False)))
NavigateComplete2 (<POINTER(IWebBrowser2) ptr=0x62def0 at 4521a80>,
VARIANT(vt=0
x400c,
byref(u'C:\\pyjamas\\examples\\gwtcanvas\\public\\GWTCanvasDemo.html')))
DocumentComplete (<POINTER(IWebBrowser2) ptr=0x62def0 at 4521e40>,
VARIANT(vt=0x
400c,
byref(u'C:\\pyjamas\\examples\\gwtcanvas\\public\\GWTCanvasDemo.html')))
set_main_frame <pyjd.mshtml.Browser object at 0x02088D70>
Traceback (most recent call last):
File "GWTCanvasDemo.py", line 109, in <module>
app.onModuleLoad()
File "GWTCanvasDemo.py", line 57, in onModuleLoad
canvas = self._get_canvas()
File "GWTCanvasDemo.py", line 49, in _get_canvas
return GWTCanvas(400,400)
File "C:\pyjamas\library\pyjamas\Canvas\GWTCanvas.py", line 73, in
__init__
self.canvas = self.impl.createElement()
File "C:\pyjamas\library\pyjamas\Canvas\GWTCanvasImplDefault.py",
line 55, in
createElement
self.setCanvasContext(e.getContext('2d'))
File "c:\python27\lib\site-packages\comtypes\client\lazybind.py",
line 142, in
__getattr__
descr = self.__bind(name, DISPATCH_METHOD | DISPATCH_PROPERTYGET)
File "c:\python27\lib\site-packages\comtypes\client\lazybind.py",
line 107, in
__bind
descr = self._tcomp.Bind(name, invkind)[1]
File "c:\python27\lib\site-packages\comtypes\typeinfo.py", line 361,
in Bind
raise NameError("Name %s not found" % name)
NameError: Name getContext not found
On Tue, Feb 28, 2012 at 5:05 PM, Rich Newpol <[email protected]
<mailto:[email protected]>> wrote:
> And Luke - YES that impl crap is for the birds compared to the sweet
> mellow taste of Pyjamas override goodness. Maybe I can find some time
> this week to wipe it clean - maybe even get IE gradients working :)
>
> R
>
> On Tue, Feb 28, 2012 at 5:02 PM, Rich Newpol <[email protected]
<mailto:[email protected]>> wrote:
>> Yeah, you'll notice that the GWTCanvas is actually a FocusWidget
>> subclass that *contains* a 2D canvas...handles mouse and keyboard
>> stuff the usual way - makes life sunny.
>>
>> Rich
>>
>> On Tue, Feb 28, 2012 at 9:17 AM, Gustaf Nilsson
<[email protected] <mailto:[email protected]>> wrote:
>>> Done.
>>>
>>> Sooooo, back to the original topic. I assume that GWTCanvas is the
way to
>>> go?
>>> How do i handle mouseinteractions? I cant find any methods
directly in the
>>> GWTCanvas class to deal with it. Should that be handled by the
inherited
>>> Mousehandler stuff?
>>>
>>> G
>>>
>>>
>>>
>>> On Tue, Feb 28, 2012 at 1:39 PM, lkcl luke
<[email protected] <mailto:[email protected]>> wrote:
>>>>
>>>> On Tue, Feb 28, 2012 at 1:36 PM, Gustaf Nilsson
<[email protected] <mailto:[email protected]>>
>>>> wrote:
>>>> > Rich, i dont have access to the git repo, someone with access
will have
>>>> > to
>>>> > apply the patch i submitted.
>>>>
>>>> wanna send me an ssh public
>>>> key?
>>>
>>>
>>>
>>>
>>> --
>>> ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
My git login is hosed somehow - not surprising since I haven't used it
and there have been major changes to everything since I first submitted
my id. In any event, I added issue 699 for the gradient fix for IE6 and
submitted a format-patch file with the changes converted to use the
latest git clone. I apologize for any delays/confusion this has caused,
I'm up to my eyeballs in other tasks and wanted to get this out there
while it was still relevant.
Regards,
Bob