I've been brushing up on DCs (and just bought Andre Lessa's Python Handbook, nice) but having an odd problem on this machine, although I have not tested at the office.
Markus Gritsch's mandelbrot script http://lists.wxwindows.org/archive/wxPython-users/msg01383.html
(and any other's I've found here that use DCs and onPaint: Ionel2_test_spd.py and http://lists.wxwindows.org/archive/wxPython-users/msg05762.html) does not draw; in Markus's, the:
print time.clock() - t
line is never reached.
The wxDemo.py all runs well, as do my programs using PlotGraphics.
Where should I look?
Ray
Win2K, ActivePython 2.2.2 Build 224, wxPython 2.4.1.2
I've been brushing up on DCs (and just bought Andre Lessa's Python Handbook, nice) but having an odd problem on this machine, although I have not tested at the office.
Markus Gritsch's mandelbrot script http://lists.wxwindows.org/archive/wxPython-users/msg01383.html
(and any other's I've found here that use DCs and onPaint: Ionel2_test_spd.py and http://lists.wxwindows.org/archive/wxPython-users/msg05762.html) does not draw; in Markus's, the:
print time.clock() - t
line is never reached.
The wxDemo.py all runs well, as do my programs using PlotGraphics.
Where should I look?
Back in the olden days magic method names like OnPaint were automatically hooked to events, but that hasn't been the case in a long time. Try using EVT_PAINT to connect the event to the handler.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!