Would Pygame allow me to code all of the bricks instead of drawing them out?


On Sat, Sep 4, 2010 at 10:35 PM, Che M <pine...@hotmail.com> wrote:

>
>
> > How would I go about creating custom GUI elements? For example,
> > if I wanted to make a simple LEGO maker app, how would I write the
> > code for the bricks so that the user could drag them around and then
> > build LEGO models?
>
> For 2D legos, using the wxPython widget toolkit, you could probably use
> its widget called FloatCanvas to provide a space in which bitmaps can be
> moved around a screen and their coordinates tracked.  Then you would
> have to write the code that determines if the bitmap of the brick is in the
>
> right position to snap into place with another brick.
>
> Che
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to