New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in example addsongallery #393

Open
pyjsorg opened this Issue Apr 27, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@pyjsorg
Contributor

pyjsorg commented Apr 27, 2012

What steps will reproduce the problem?

  1. Running addsonsgallery in pydj, the following error appears when
    selecting the Canvas demo (sorry I don't have enough knwoledge to solve the
    bug :-(

Traceback (most recent call last):
File "P:\Python\Lib\site-packages\pyjd\mshtmlevents.py", line 243, in
IDispatch_Invoke
result = mth(self.sender, event, None)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\DOM.py", line 65, in
_dispatchEvent
def _dispatchEvent(sender, evt, useCap):
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\DOM.py", line 807, in
dispatchEvent
dispatchEventImpl(event, element, listener)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\DOM.py", line 838, in
dispatchEventImpl
listener.onBrowserEvent(event)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\ui\Hyperlink.py",
line 61, in onBrowserEvent
History.newItem(self.targetHistoryToken)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\History.py", line 54,
in newItem
onHistoryChanged(ht)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\History.py", line 70,
in onHistoryChanged
fireHistoryChangedImpl(ht)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\History.py", line 78,
in fireHistoryChangedImpl
listener.onHistoryChanged(ht)
File
"D:\Data_Python_25__PyJamas_07\examples\addonsgallery\AddonsGallery.py",
line 23, in onHistoryChanged
self.show(info, False)
File
"D:\Data_Python_25__PyJamas_07\examples\addonsgallery\AddonsGallery.py",
line 68, in show
self.curSink = info.getInstance()
File "D:\Data_Python_25__PyJamas_07\examples\addonsgallery\Sink.py", line
31, in getInstance
self.instance=self.createInstance()
File "D:\Data_Python_25__PyJamas_07\examples\addonsgallery\Sink.py", line
24, in createInstance
return self.object_type()
File "D:\Data_Python_25__PyJamas_07\examples\addonsgallery\CanvasTab.py",
line 15, in init
colour_grid = ColourGridCanvas()
File "D:\Data_Python_25__PyJamas_07\examples\addonsgallery\CanvasTab.py",
line 58, in init
Canvas.init(self, 150, 150)
File "D:\Data_Python_25__PyJamas_07\library\pyjamas\Canvas2D.py", line
33, in init
canvas.width=width
File "P:\Python\lib\site-packages\comtypes\client\lazybind.py", line 187,
in setattr
put = self.__bind(name, DISPATCH_PROPERTYPUT)
File "P:\Python\lib\site-packages\comtypes\client\lazybind.py", line 107,
in __bind
descr = self._tcomp.Bind(name, invkind)[1]
File "P:\Python\lib\site-packages\comtypes\typeinfo.py", line 361, in Bind
raise NameError("Name %s not found" % name)
NameError: Name width not found

What version of Pyjamas are you using? which svn revision number?
On what operating system?
PyJamas 0.7~pre1, on WinXP-SP2

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=326 (November 10, 2009 12:21:55)

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From luke.lei...@gmail.com on November 10, 2009 12:59:32:
ah: no, i don't expect the addonsgallery to work with MSHTML pyjd because MSHTML
doesn't support SVG, and the pyjs version uses excanvas.sf.net, a javascript-only
library.

addonsgallery canvas needs to be ported to use the python port of gwtcanvas.

Contributor

pyjsorg commented Apr 27, 2012

From luke.lei...@gmail.com on November 10, 2009 12:59:32:
ah: no, i don't expect the addonsgallery to work with MSHTML pyjd because MSHTML
doesn't support SVG, and the pyjs version uses excanvas.sf.net, a javascript-only
library.

addonsgallery canvas needs to be ported to use the python port of gwtcanvas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment