2012/1/21 lkcl luke <[email protected]>: > pythonwebkit compiles easily enough, and there _is_ debian packaging > for it (i created it). phil endeavoured to get the debian packaging > up-to-date before new year, but he's a little distracted because his > wife's baby is due.
Okay, I managed to install pythonwebkit following the Wiki at http://pyjs.org/wiki/pyjamasubuntuwebkitgtk/ Some examples run and work. Many examples throw an exception when starting up, however: E.g. the asteroids example, or the hangman example: ... AttributeError: 'pywebkit.HTMLCanvasElement' object has no attribute 'getContext' Or, e.g. the MailApp example: ... File "/home/pbittner/Development/30-percent/pyjamas/library/gwt/Window.py", line 39, in enableScrolling doc().body.style.overflow = enable and 'auto' or 'hidden' AttributeError: 'pywebkit.CSSStyleDeclaration' object has no attribute 'overflow' I understand those problems result from the current status of Python-Webkit. (From: http://www.gnu.org/software/pythonwebkit/) > The current status is that the SVG 2D Canvas element is not available, > and CSS Styles have to be modified through the style.setProperty > function (rather than being accessible as python properties). Can you explain why this isn't implemented yet, what's the actual the problem in the implementation? (Can't the access to the CSS styles be patched in the Python-Webkit sources, or have a fallback implementation for ".style.xxxxxx = ..." in pyjd?) Peter

