using backround image for painting: fixed

I'm really sorry for the attachment, I simply didn't realize it is that
huge.
I fixed the problem, it was a stupid error that I fixed in the morning.
wxDrawBitmap does work.
I attached a working version for those who are curious.
Once again: to start a new curve right click then left click and move
your mouse, to terminate the curve, double-click.

Thanks,
~Serge

digitizer.py (7.52 KB)

···

+++++
This mail has been sent through the MPI for Demographic Research. Should you receive a mail that is apparently from a MPI user without this text displayed, then the address has most likely been faked. If you are uncertain about the validity of this message, please check the mail header or ask your system administrator for assistance.

Dear Serge,
I changed line 225 to

if sz != (0,0):
    img.Rescale(sz[0], sz[1])

To get it running. The first time OnSize is called you get a client size of
0,0, and a rescale operation to this size seems to raise an exception, at
least on python 2.3 and wxPython 2.4.2.4.
Regards
Oliver

···

-----Ursprüngliche Nachricht-----
Von: Serge Boiko [mailto:boiko@demogr.mpg.de]
Gesendet: Dienstag, 4. November 2003 18:34
An: wxPython-users@lists.wxwindows.org
Betreff: [wxPython-users] re: using backround image for painting: fixed

I'm really sorry for the attachment, I simply didn't realize it is that
huge.
I fixed the problem, it was a stupid error that I fixed in the morning.
wxDrawBitmap does work. I attached a working version for those who are
curious. Once again: to start a new curve right click then left click and
move your mouse, to terminate the curve, double-click.

Thanks,
~Serge

+++++
This mail has been sent through the MPI for Demographic Research. Should
you receive a mail that is apparently from a MPI user without this text
displayed, then the address has most likely been faked. If you are
uncertain about the validity of this message, please check the mail header
or ask your system administrator for assistance.
< Datei: digitizer.py >> < Datei: ATT00023.txt >>