[Tutor] Creating custom GUI elements
aug dawg
augdawg09 at gmail.com
Sun Sep 5 16:42:39 CEST 2010
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 <pine508 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100905/8177a803/attachment-0001.html>
More information about the Tutor
mailing list