Thanks, hope it will make it into simplui :)
I tried to send you an old version yesterday directly by mail but I don't know if you received it. Anyway, the posted version is more finalized. Also, you might consider the ninepatch.py (http:// www.loria.fr/~rougier/tmp/ninepatch.py) I coded, it used vertex indexed list, handles discontinuous stretchable parts and also handles optional padding. Nicolas On Jun 2, 8:08 pm, Tristam MacDonald <[email protected]> wrote: > 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 MacDonaldhttp://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 -~----------~----~----~----~------~----~------~--~---
