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:
parent
331139716c
commit
8170f2ee3e
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user