Is it better done with wxPython or pygame?

Hi!

I have a project management class exercise where my team needs to write --
or hire someone to write for us, we haven't yet decided on what approach
will use -- an application that allows us to divide a square in four equal
parts, with user interaction.

I was thinking on what to use for such a task and I'm divided about using
wxPython with some sort of canvas or pygame.

An overview of the project might help you undertand what we have to do...

The user should be able to draw in part (a quarter, for example) of a square
or in the full square and his drawn should be replicated in the rest of the
square so that when he finishes the drawing the big square was divided in
four equal parts.

···

+----------------+----------------+
         > > >
         > > >
         > > >
         > 1 | 2 |
         > > >
         > > >
         +----------------+----------------+
         > > >
         > > >
         > > >
         > 4 | 3 |
         > > >
         > > >
         +----------------+----------------+

I thought about dividing the big square in for and letting the user draw
anything from the upper left corner of square 2 to its lower right line,
but not the corner. The "pen" would be disable for areas smaller than 3 to
10 pixels from the (virtual, invisible or very light) separation lines with
squares 1 and 3, so that he doesn't divide the square in more parts than 4
equal parts.

After (or while) the drawing is done in square 2, it should be rotated in
intervals of 90 degrees to the other squares, to replicate and divide the
big square in four parts.

Do you think it's doable with wxPython? Or would I be better trying it with
pygame?

Thanks for any comments you might have,
--
Godoy. <godoy@ieee.org>

Jorge Godoy wrote:

Do you think it's doable with wxPython?

Yes. For example see the doodle sample. You could do something like that but just replicate all drawing operations in the other quadrants transforming coordinants as needed.

Or would I be better trying it with
pygame?

I havn't done much with pygame so I can't say.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I think this is just what I need.

And with a few extra points for an interface like the one in
superdoodle. :wink:

I'll try to modify it, making 5 new areas, one for each square and one fifth
area inside one of the squares with the 3 - 10 pixels margin I mentioned.

Thanks!

···

On Qua 19 Mai 2004 16:13, Robin Dunn wrote:

Jorge Godoy wrote:

Do you think it's doable with wxPython?

Yes. For example see the doodle sample. You could do something like
that but just replicate all drawing operations in the other quadrants
transforming coordinants as needed.

--
Godoy. <godoy@ieee.org>