[wxPython] Draw a line with wxPython

Hi,

I'm a new user of wxPython.
I would like to draw some lines in a window in order to make a road map.

I think I need a "canvas" or something like this, to draw the lines on
it. But I don't know how I can do this.
Furthermore: is wxPython sufficient to do this or do I need other
modules like Piddle?

Thanks in advance.
Carole.

Hi,

Hello...

I'm a new user of wxPython.

My commiserations :wink:

I would like to draw some lines in a window in order to make a road map.

I think I need a "canvas" or something like this, to draw the lines on
it. But I don't know how I can do this.
Furthermore: is wxPython sufficient to do this or do I need other
modules like Piddle?

I think you'll probably be wanting wxOGL - it supplies canvas, shapes,
and other graphical toolkit stuff. Some of it even works the way you'd
expect it to (but don't count on it). Have fun....

Regards,
Denny

···

On Thu, 5 Apr 2001, Carole Valentin wrote:

----------------------------------------------------------
Denny De La Haye \ www-edc.eng.cam.ac.uk/~djd33
Engineering Design Centre, \ www-edc.eng.cam.ac.uk
Department of Engineering, \ www.eng.cam.ac.uk
University of Cambridge, UK \ www.cam.ac.uk
----------------------------------------------------------
"Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former." (Albert Einstein)

> Hi,

Hello...

> I'm a new user of wxPython.

My commiserations :wink:

> I would like to draw some lines in a window in order to make a road map.
>
> I think I need a "canvas" or something like this, to draw the lines on
> it. But I don't know how I can do this.
> Furthermore: is wxPython sufficient to do this or do I need other
> modules like Piddle?

I think you'll probably be wanting wxOGL - it supplies canvas, shapes,
and other graphical toolkit stuff. Some of it even works the way you'd
expect it to (but don't count on it). Have fun....

Regards,
Denny

----------------------------------------------------------
Denny De La Haye \ www-edc.eng.cam.ac.uk/~djd33
Engineering Design Centre, \ www-edc.eng.cam.ac.uk
Department of Engineering, \ www.eng.cam.ac.uk
University of Cambridge, UK \ www.cam.ac.uk
----------------------------------------------------------
"Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former." (Albert Einstein)

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

···

On Thu, 5 Apr 2001, Denny De La Haye wrote:

On Thu, 5 Apr 2001, Carole Valentin wrote:

--
Kevin Cole, RHCE, Linux Admin | E-mail: kjcole@gri.gallaudet.edu
Gallaudet Research Institute | WWW: http://gri.gallaudet.edu/~kjcole/
Hall Memorial Bldg S-419 | Voice: (202) 651-5135
Washington, D.C. 20002-3695 | FAX: (202) 651-5746

(Oops. Sorry 'bout that last [empty] message.)

If you're using Red Hat Linux or some variant that uses RPM, you might
want to look at Mesa, which, if memory serves me, will help out the
wxOGL stuff, by supplying the underlying libs.

···

On Thu, 5 Apr 2001, Denny De La Haye wrote:

On Thu, 5 Apr 2001, Carole Valentin wrote:

> Hi,

Hello...

> I'm a new user of wxPython.

My commiserations :wink:

> I would like to draw some lines in a window in order to make a road map.
>
> I think I need a "canvas" or something like this, to draw the lines on
> it. But I don't know how I can do this.
> Furthermore: is wxPython sufficient to do this or do I need other
> modules like Piddle?

I think you'll probably be wanting wxOGL - it supplies canvas, shapes,
and other graphical toolkit stuff. Some of it even works the way you'd
expect it to (but don't count on it). Have fun....

Regards,
Denny

----------------------------------------------------------
Denny De La Haye \ www-edc.eng.cam.ac.uk/~djd33
Engineering Design Centre, \ www-edc.eng.cam.ac.uk
Department of Engineering, \ www.eng.cam.ac.uk
University of Cambridge, UK \ www.cam.ac.uk
----------------------------------------------------------
"Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former." (Albert Einstein)

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

--
Kevin Cole, RHCE, Linux Admin | E-mail: kjcole@gri.gallaudet.edu
Gallaudet Research Institute | WWW: http://gri.gallaudet.edu/~kjcole/
Hall Memorial Bldg S-419 | Voice: (202) 651-5135
Washington, D.C. 20002-3695 | FAX: (202) 651-5746

If you're using Red Hat Linux or some variant that uses RPM, you might
want to look at Mesa, which, if memory serves me, will help out the
wxOGL stuff, by supplying the underlying libs.

wxOGL doesn't have anything to do with OpenGL (or Mesa) it's just an
unfortunate acronym collision.

···

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