wx.PrintPreview() refresh (?) events

Robin,

At first I thought it was a problem with the lib I was working on, but
looking around, it appears that wx.PrintPreview() doesn't fire an event off
to its children in such a way as to get them to all refresh fully. Some
damaged areas are left behind. If I minimize then restore the window,
everything's fine.

To reproduce:

1) Run TablePrint.py from the demo. Select the first button. Reduce the
preview size to 20% using the dropdown. Change the window size. You'll
notice that the little preview doesn't re-center to the window dimensions.
Minimize the window, then restore. Now the little preview is where it's
supposed to be.

2) (you'll need wx.lib.plot.py which will be there tommorrow) Select PLOT 1
from the second menu. Select PRINT PREVIEW from the first menu. Stretch the
preview window out. You'll note damaged areas to the right and bottom.
Minimize then restore window. All is well.

Jeff Grimmett wrote:

Robin,

At first I thought it was a problem with the lib I was working on, but
looking around, it appears that wx.PrintPreview() doesn't fire an event off
to its children in such a way as to get them to all refresh fully. Some
damaged areas are left behind. If I minimize then restore the window,
everything's fine.

To reproduce:

1) Run TablePrint.py from the demo. Select the first button. Reduce the
preview size to 20% using the dropdown. Change the window size. You'll
notice that the little preview doesn't re-center to the window dimensions.
Minimize the window, then restore. Now the little preview is where it's
supposed to be.

2) (you'll need wx.lib.plot.py which will be there tommorrow) Select PLOT 1
from the second menu. Select PRINT PREVIEW from the first menu. Stretch the
preview window out. You'll note damaged areas to the right and bottom.
Minimize then restore window. All is well.

Thanks, I'll check into these.

ยทยทยท

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