On Monday 09 April 2012 11:52 PM, lkcl luke wrote:
> On Mon, Apr 9, 2012 at 6:49 PM, Bhuvan Krishna<[email protected]>  wrote:
>> Dear lkcl,
>>
>> I admire and respect the tremendous amount of work you have put in
>> pyjamas along with others.
>   thanks.
>
>> Thanks for the quick reply with links that
>> gave me more confidence that i can do it (It is challenging though).
>   :)
>
>> As
>> asked i will try my best. I already installed pyjamas and pyjd on
>> windows (from git source) and also tested the example apps that came
>> with the source code of pyjamas using pyjd they all were working fine
>> except 1 or 2 because of the lack of a server i guess.
>   ah.  could you be more specific about what you tested, which
> versions, which browsers etc. because we're _just_ going through a
> release test.
I tested it on windows 7 with python 2.7 and pyjamas 0.8 download from 
git 4 days back. Since i tested all of them with pyjd the browser will 
be mshtml i guess. and i found these issues. (I don't know if they were 
fixed/found earlier)

jsonrpc
the readme says that in order to run the python CGI server go to 
examples/jsonrpc/output and run
python PythonCGIServer.py

but the file PythonCGIServer.py is located in public instead of optput 
(infact their is no output folder)

after starting the server i ran pyjd JSONRPCExample.py i got a window in 
which it showed the 404 server not found page and under that i can see 
the JSON-RPC Example. When i try to send some test text to python CGI 
server i get http error: 12029:

addonsgallery

when i clicked canvas2d i got some errors at the prompt and when i 
clicked canvas the window got closed and at the prompt i get an error
TypeError: expected a character buffer object
>
>> You got the point
>> that i wanted to make, that the transparency effect which is achieved in
>> google gadgets ( I will try with the solutions that you gave and do a
>> more indepth research on it).
>   yeah it basically means depending on the window manager for various things.
>
> which reminds me: would you like to help create a python-based window
> manager that uses pyjamas desktop as the actual "window manager"?
> that way, it would actually be possible to just have transparent
> widgets... as pyjd applications or javascript!
>
>   i started this project 2 or so years ago -
> http://sf.net/projects/pyjdwm - it involves using a very very very
> basic NPAPI plugin which tells pyjd what its X-windows ID is.
> applications can be fired up into that X-window.  the key here is to
> "re-parent" the application, but you can ONLY do that when running as
> the root window... hence the requirement to do this as an actual
> window manager.
this looks interesting. Since i am still trying to understand how the 
whole thing works. I am a bit confused on few things that i will list in 
my next mail. I will see if i can do something with it.
>> webkit
>> --------
>>
>> I thought that since webkit is used by chrome i guessed that the engine
>> will be available on windows when you install chrome.
>   yes, but that's not enough.  there's no python bindings to it.
> webkit is heavily customised, and does not have a generic
> (easily-accessible) API.  even worse, the various APIs that *are*
> available are either a) incomplete b) insufficient c) *different* from
> the standard javascript functions.
>
>   for pyjd to work on top of an engine, the WHOLE COMPLETE HTML5 API
> WITHOUT EXCEPTION WITHOUT FAIL WITHOUT DISCREPANCIES WITHOUT CHANGES
> FROM THE STANDARD DE-FACTO JAVASCRIPT API *must* be available.
>
>   as that's a few thousand functions and tens of thousands of
> properties, it's a big damn job.
>
>   if you're missing access to timers, there's no point, because
> substituting a timer API such as the w32 one or the pygtk2 one results
> in segfaults due to race conditions.
>
>   if you're missing HTTPRequest, there's no point, because using
> standard networking libraries won't interact with the engine, properly
> (event handling such as onxmlhttprequest) and, again, result in
> threading problems and race conditions.
>
>   if you're missing a single property or a function, there's no point,
> because someone somewhere will want that function in their code.
>
>   so it really does have to be all or nothing, and that's a hell of a
> committment of time and effort.
>
> l.
I went through this link http://www.gnu.org/software/pythonwebkit/ which 
i guess says about python bindings for webkit. But i don't know if this 
document describes about do's and don'ts or shows the various ways in 
which one can achieve the required result.

One more thing why can't we create a blank canvas and make it a bit 
translucent and this canvas is a browser with out borders. It is a wild 
guess. I don't know if it is possible and i guess thats what you were 
point to when you referred to pyjdwm.

Reply via email to