Re: [pygame] Layout module for Pygame surfaces

2010-05-18 Thread Jake b
I have felt the same, thinking back to handling xml in the past. I was thinking that you draw a SVG in inkscape, which xml is read for python UI. It looks like its a pythonic way if you need xml, but I've only used it in small protos. I'm curious if anyone has used amara in bigger projects? (Not

Re: [pygame] Layout module for Pygame surfaces

2010-05-17 Thread Pablo Recio Quijano
] Layout module for Pygame surfaces Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use an existing library and write an editor for it. Thats really the thrust of what you are trying to do. Support the code that is out there instead

Re: [pygame] Layout module for Pygame surfaces

2010-05-17 Thread Thiago Chaves
-pygame-us...@seul.org] On Behalf Of Mark Reed Sent: Saturday, May 15, 2010 12:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Layout module for Pygame surfaces Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use an existing

Re: [pygame] Layout module for Pygame surfaces

2010-05-17 Thread Pablo Recio Quijano
Of Mark Reed Sent: Saturday, May 15, 2010 12:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Layout module for Pygame surfaces Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use an existing library and write an editor

Re: [pygame] Layout module for Pygame surfaces

2010-05-17 Thread Daniel Tousignant-Brodeur
-us...@seul.org] On Behalf Of Mark Reed Sent: Saturday, May 15, 2010 12:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Layout module for Pygame surfaces Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use

Re: [pygame] Layout module for Pygame surfaces

2010-05-17 Thread Jake b
I would use XML. It opens the audience to a larger group, and makes it easier for other tools to work with. This might work? Says it uses HTML for layout , python for scripting. http://www.libavg.de/concept.php see also, xrc tutorial: ( XML layout for wxwindows )

Re: [pygame] Layout module for Pygame surfaces

2010-05-17 Thread Mark Reed
XML is only to save the programmer effort and was created because so many languages can't process text and do not have good data structures. It is not the best way for a user to hand enter a design for a UI. And in fact in python it makes the programmers job harder because reading the file is

RE: [pygame] Layout module for Pygame surfaces

2010-05-16 Thread David Taylor
I like that idea a whole lot more than XML. -Original Message- From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Mark Reed Sent: Saturday, May 15, 2010 12:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Layout module for Pygame surfaces

Re: [pygame] Layout module for Pygame surfaces

2010-05-16 Thread Luke Paireepinart
] On Behalf Of Mark Reed Sent: Saturday, May 15, 2010 12:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Layout module for Pygame surfaces Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use an existing library and write an editor

Re: [pygame] Layout module for Pygame surfaces

2010-05-16 Thread Thiago Chaves
...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Mark Reed Sent: Saturday, May 15, 2010 12:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Layout module for Pygame surfaces Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use

Re: [pygame] Layout module for Pygame surfaces

2010-05-15 Thread Pablo Recio Quijano
There's no GUI behind the the XML right now. I wrote the XML by hand. The idea is to do the library and write an application like Glade, but for Pygame. 2010/5/15 jake b ninmonk...@gmail.com What GUI are you using behind the xml? I'd be interested in seeing the code. -- Pablo Recio

Re: [pygame] Layout module for Pygame surfaces

2010-05-15 Thread Jake b
Cool. A GUI builder / editor would be useful. Would it be better to design the format to be a non-specific toolkit? You would edit your GUI , saving xml. Then the game render's using it's toolkit. I don't have much experience with different toolkits, so I don't know if it's best to

Re: [pygame] Layout module for Pygame surfaces

2010-05-15 Thread Mark Reed
Why does it need to be XML? Write it out as python dict's and eval the file. 2 lines of code. And use an existing library and write an editor for it. Thats really the thrust of what you are trying to do. Support the code that is out there instead of rewriting it. Mark On Sat, May 15, 2010 at

Re: [pygame] Layout module for Pygame surfaces

2010-05-14 Thread jake b
What GUI are you using behind the xml? I'd be interested in seeing the code.

[pygame] Layout module for Pygame surfaces

2010-05-13 Thread Pablo Recio Quijano
Hi! Some months ago I developed an application that uses Pygame as main media lbrary. One of the problems I saw when I was developing is to structure the layout of the screen, because sometimes you want to make some layout to organize on a best way that screen. Here is some example: