On Mar 3, 10:20 pm, Stef Mientki <stef.mien...@gmail.com> wrote:
> thanks Luke,
> lkcl wrote:
> > On Mar 3, 7:01 pm, Stef Mientki <stef.mien...@gmail.com> wrote:
> >> hello,
> >> I wonder if there's a windows version of PyJamas-desktop ?
> > i endeavoured compiling up webkit for win32 back in august. it took
> > a week, and required a patched version of gcc out of gcc's subversion
> > repository, due to bugs and features involving stdc++ exception
> > handling not crossing process boundaries in all other versions of gcc
> > for win32.
> <snip>
> that's all well beyond my knowledge, but not a real problem I guess.
> I was very pleased to see the (relative) simple PyJamas examples,
> wow, not to learn yet another language, great,
> got it running in 10 minutes.
> So I thought PyJamas-desktop would complete the environment,
> but if I understand it well, it's just a webbrowser, is that correct ?
effectively yes, but it's a hell of a lot more than that, thanks to
the DOM model manipulation i added.
the DOM model manipulation turns the whole "web browser" into a
"desktop canvas" - equivalent in effect to the Windows low-level GUI
API, or equivalent to the X-Windows low-level GUI plus e.g. Athena
Widgets or something.
it's hard to describe.
the closest alternative equivalent is python-hulahop (but minus
pyjamas.ui and pyjamas.DOM) which is XUL / Gecko with python bindings
to the DOM model.
> It might be worth waiting for wxwidgets / wxPython,
> as they are working on the webkit integration for windows.
it will be utterly useless for the purposes you envisage.
the work i did in august added the absolutely crucial DOM model
manipulation. bug #16401 in webkit.
without that work, the level of interaction with webkit is nothing
more than keyboard and mouse, back-button control, open a url, close a
window, receive a notification when a url has been loaded.
wow big xxxxing deal.
> What kind of editor / IDE are people using, working with PyJamas ?
me? vi. vim to be precise. with the following ~/.vimrc which makes
life that much easier and also conforms to PEPs regarding code layout.
syntax on
set ts=4
set sw=4
set expandtab
i run ctags -R at the top level of a project which gives a way to jump
to any function and any data references.
i run a 4x6 fvwm2 desktop (24 1200x800 virtual screens), two maybe
three xterms open in about half of the 24 xterms, and a quarter of
them have firefox.
so this is in my ~/.fvwmrc:
DeskTopSize 6x4
read ConfigFvwmPager
Module FvwmPager
if i need an extra editor session, i Ctrl-Z the current vi session
and run a new vi command.
when doing webkit glib / gdom hacking in august i ended up having 250
vi sessions in one xterm and 150 in the other. ps aux | grep vi | wc
gave 650 vi processes, and i had to start using things like jobs |
grep DOMWindow in order to find the right editor session.
today, that's:
ps aux | grep vi|wc
377 4490 32311
so, 377 vi session currently open.
i don't believe that there are many IDEs that could cope with helping
you navigate quickly through 400 open files. for the webkit hacking,
20 of which were _actively_ being edited and up to 30 of which were
being auto-generated and so need to be examined regularly to ensure
that they are correct.
l.