can put back the wx.BufferedPaintDC now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-10-13 00:15:57 +00:00
parent 331139716c
commit 8170f2ee3e

View File

@ -3549,22 +3549,10 @@ class PageContainer(wx.Panel):
def OnPaint(self, event):
""" Handles the wx.EVT_PAINT event for L{PageContainer}."""
# Currently having problems with buffered DCs because of
# recent changes. Just do the buffering ourselves instead.
dc = wx.BufferedPaintDC(self)
#dc = wx.AutoBufferedPaintDC(self)
#dc = wx.AutoBufferedPaintDCFactory(self)
## size = self.GetSize()
## bmp = wx.EmptyBitmap(*size)
## dc = wx.MemoryDC()
## dc.SelectObject(bmp)
renderer = self._mgr.GetRenderer(self.GetParent().GetWindowStyleFlag())
renderer.DrawTabs(self, dc)
## pdc = wx.PaintDC(self)
## pdc.Blit(0,0, size.width, size.height, dc, 0,0)
def AddPage(self, caption, selected=True, imgindex=-1):
"""