mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 13:57:08 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
22 lines
507 B
Python
22 lines
507 B
Python
|
|
# Called when window needs to be repainted.
|
|
def OnPaint(self, event):
|
|
|
|
dc = wx.PaintDC(self)
|
|
|
|
# Find out where the window is scrolled to
|
|
vbX, vbY = self.GetViewStart()
|
|
|
|
# get the update rect list
|
|
upd = wx.RegionIterator(self.GetUpdateRegion())
|
|
|
|
while upd.HaveRects():
|
|
|
|
rect = upd.GetRect()
|
|
|
|
# Repaint this rectangle
|
|
PaintRectangle(rect, dc)
|
|
|
|
upd.Next()
|
|
|