Hi Les,
As you noticed, the Mandelbrot demo from a few months ago uses an OnPaint
magic method (support for these methods were recently removed from the
wxPython distribution), which means running the code gives you a blank black
screen, instead of the Mandelbrot fractal. A single line can be added to
the __init__ method of the canvas to make the demonstration functional:
EVT_PAINT( self, self.OnPaint )
I've included a full copy of the demo with the added line for those who did
not receive the original.
If you want more information:
http://wxwindows.org/pipermail/wxpython-users/2000-June/002358.html
Was the official "notice" to retool our projects to use the official
mechanism. In general, if a method is present in the list:
OnChar
OnSize
OnEraseBackground
OnSysColourChanged
OnInitDialog
OnPaint
OnIdle
OnActivate
OnMenuHighlight
OnCloseWindow
OnScroll
You need to add a line of the form:
OnXyz --> EVT_XYZ( self, self.OnXyz )
Where self.OnXyz can actually be any function you particularly desire.
Enjoy yourself,
Mike
PS: I copied the wxPython users list in case others are trying to run this
demo and finding it does nothing :0) .
mandelbrot3.py (8.12 KB)