On Feb 6, 3:46 am, Express <[email protected]> wrote:
> Yeah I did try Kytten, and I was impressed with its features. However
> it doesn't allow custom widget images and it seems to have rather
> large framerate hits. Opening 1 form cuts the frame rate from 20-50%.

I'm not currently maintaining Kytten, but I did write it.

Kytten has a notion of themes where you can replace or insert new
graphics in a subdirectory, then edit the theme.json file inside the
theme directory to refer to those graphics.  Graphics are 9-boxes: you
can specify the width and height of the corners and side bars, and
stretch them around the center box, as it were, so you can resize a
given source widget graphic as you need.

As for frame loss, one approach that might work - I don't have the
time to implement it, which is why I haven't done anything with Kytten
in a while - is to write the GUI into a texture, then only update the
texture 10 or 20 times a second, rather than trying to update
everything every frame.  Please feel free to take the kytten code and
modify it if you wish, it IS open source.

Some other GUIs I've seen talk of:

Greg Ewing's PyGUI:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Not pyglet-specific, it seems to be based on PyOpenGL.  It doesn't
seem to have themes, and it wraps windows rather than appearing as
discrete elements within a window.

Tristram MacDonald's simplui
http://swiftcoder.wordpress.com/2009/08/17/simplui-1-0-4-released/
Like Kytten, supports themes and 9-box graphics.  It may run faster,
or not.

Sadly I don't think anyone has yet developed the one GUI that offers
all the features desired yet.  It turns out to be one of those things
that seems simple, yet requires masterful coding to accomplish.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to