GUIs - A Modest Proposal

lkcl luke.leighton at gmail.com
Sun Jun 13 13:08:57 EDT 2010


On Jun 13, 3:52 pm, Arndt Roger Schneider <arndt.ro... at addcom.de>
wrote:
> lkcl schrieb:
>
> > [snip]
>
> > it's the exact same thing for SVG image file-format.  i'm
> >_definitely_ not convinced that "SVG the image fileformat" is The One
> >True Way to design images - but i'm equally definitely convinced of
> >the power of SVG manipulation libraries which allow for the creation
> >SVG images using declarative programming.
>
> You rather severly underestimate the impact from SVG!

 no - i kept things brief, so as not to dominate the postings here:
you've very kindly filled in the blanks, and given far more
information than even i was aware of, which is great.

> 1. SVG is a complete visualization system and not an fancy way to create
> icons.

 ... all of which is accessible via DOM manipulation, via the W3C-DOM-
specified functions through the <canvas /> element.   use of which has
resulted in the creation of a very powerful _python_ library which re-
presents those SVG Canvas functions.  fillRect. saveContext.
translate.

 demo of end-result usage can be seen here:
   http://pyjs.org/examples/gwtcanvas/output/GWTCanvasDemo.html
   http://pyjs.org/examples/asteroids/output/Space.html

> Using HTML/CSS/DOM/javascript for application building:
> Well, yes can be done.

 yes, it could.  personally i wouldn't recommend the javascript bit.
it's too dreadful. :)

> HTML is however text oriented; each
> application entirely based on this technology will be saturated
> with text.

 ah - no, it won't.  isn't.  pyjamas apps are the proof that that
isn't the case.  pyjamas applications contain, at the absolute basics,
_one_ HTML file comprising... about eight lines, the most important
two bits being a "meta" tag naming the pre-compiled application, and a
"script" tag with bootstrap.js which knows about the aforementioned
"meta" tag.  that's _it_.  the rest can be done _entirely_ using
declarative-style programming.

 but... if you _want_ to, that "loader" file can be a full-blown PHP
app: just as long as that meta tag is there, and the bootstrap.js is
there, the pyjamas app can be initiated "on top of" the PHP page.
just like any other javascript can be run and can begin to manipulate
the DOM.  so it's just a matter of degree.  you can either specify
almost everything in "text" HTML/CSS or you can do entire DOM-
manipulation or anything in between, to suit _your_ personal
preference.

 i must not be explaining this very well, for which i apologise.

> >>or whatever the W3C technology of the month is.
>
> > :) don't underestimate how much time and money is going into the W3C
> >standards!  and remember, someone's got to implement them, so the
> >actual proof of the pudding is not what the W3C thinks but whether the
> >technology ends up actually in the hands of users and is successful
> >_for users_.
>
> > l.
>
> The mony part is definitly important. Tk is actually a good example for
> the working of money-politics (the absence thereof).

 :)  yehhs... and then people complain when it doesn't "look good".
interesting neh?

 hence a reason why i'm advocating to "leverage" the incredible power
of the technologies which _have_ had vast amounts of money/effort
poured into them, with very little effort spent on the "leveraging"
bit.

 l.



More information about the Python-list mailing list