On Sat, Jun 6, 2009 at 8:50 AM, Nicolas Rougier <[email protected]>wrote:
> > Well, I think it should be straightforward to make it dynamic but I > may be wrong. Currently, sizing is done from the toplevel widget down > to the most inner ones. If you resize an inner widget, either you've > already enough space (request vs. alllocated) or you need to tell your > parent that more space is needed. If the parent can grant you more > space, then you're done. If it cannot, then it must tell its parent > that more space is needed and so on up to the toplevel widget which > the only one that can freely resize itself (since it has no parent). > Thanks for that explanation! I have rewritten the simplui layout management to use the same scheme (in SVN trunk), and it seems to be working pretty well. I still have to iron out some rough edges (spacer widget, alignment on all controls), but I think this is a good modification - especially since horizontal layouts are now allowed. -- 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 -~----------~----~----~----~------~----~------~--~---
