Mailing List Archive

*** Parrot-0.0.1 released ***
In article <935279776snz@vision25.demon.co.uk>
philh@vision25.demon.co.uk "Phil Hunt" writes:
> It looks like version 0.0.1 of Parrot, my text-based GUI builder,
> will be ready within a day or so. It doesn't actually do anything
> useful yet; v0.0.1 is a technology demonstration version, which
> is intended to verify that the basic design is more-or-less
> sensible. Would anyone like to have a look at it, and possibly
> suggest some improvements? If so, tell me, and I'll put it on
> my website.

Parrot is now on my website, at
http://www.vision25.demon.co.uk/prog/parrot.html

--
Phil Hunt....philh@vision25.demon.co.uk
*** Parrot-0.0.1 released *** [ In reply to ]
Could you give an example of how to plug code with a generated python
file ?

for example, how to attach a command when the "New" menu is triggerred ?

window @MyWindow "My First Window" {
menuBar {
menu "File" {
menuItem @New "New"
}
}

stef

--
Stéphane Conversy
http://www-ihm.lri.fr/~conversy/
mailto:conversy@lri.fr
*** Parrot-0.0.1 released *** [ In reply to ]
In article <37C2B9CE.95AA5FEC@lri.fr> conversy@lri.fr "Stephane Conversy" writes:
> Could you give an example of how to plug code with a generated python
> file ?

Not in detail, because I haven't written a Python backend yet.

> for example, how to attach a command when the "New" menu is triggerred ?
>
> window @MyWindow "My First Window" {
> menuBar {
> menu "File" {
> menuItem @New "New"
> }
> }

The way I envisage this working is that it would create a class,
MyWindow, for the window. This would have an empty method called
New() or New_pressed() or somesuch. To write code for this method, you
would subclass the MyWindow class with a class that implemented
the method.

(The details of this are no doubt wrong, but that is the general scheme
I have in mind).

--
Phil Hunt....philh@vision25.demon.co.uk