That is a pretty neat system. I like the simplicity of the concept.

On Tue, Jun 2, 2009 at 1:47 PM, Nicolas Rougier
<[email protected]>wrote:

>
>
> Hi all
>
> With all the activity around the design of pyglet user interfaces, I
> tried to code a simple widget placement algorithm inspired by GTK hbox/
> vbox. Currently, the class only handles horizontal placement but
> vertical placement is straightforward.
>
> Screenshot : http://www.loria.fr/~rougier/tmp/hbox.png
> Code: http://www.loria.fr/~rougier/tmp/hbox.py
>
> On the screenshot, there are 15 different placement using the exact
> same 3 widgets.
>
> The main idea is to use spacers (a dumb widget) that can be inserted
> anywhere between widgets. Those spacers can be expandable or have a
> fixed size. The same goes for any widget and here you have plenty of
> placement freedom with a single line, both fully automatic placement &
> sizing and/or manual placement & sizing with pixel precision.
>
> Using both hbox and vbox should allow for easy placement of any kind
> of widgets.
>
>
> Nicolas


-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
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