Use wx.FULL_PAINT_ON_RESIZE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-10-30 21:30:16 +00:00
parent 997ba01b28
commit 630edaac3c
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,10 @@ static text is positioned at (0,0) and it spans 7 columns.
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, "wx.GridBagSizer")
p = wx.Panel(self, -1)
p = wx.Panel(self, -1, style = wx.TAB_TRAVERSAL
| wx.CLIP_CHILDREN
| wx.FULL_REPAINT_ON_RESIZE
)
p.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
gbs = self.gbs = wx.GridBagSizer(5, 5)

View File

@ -40,7 +40,8 @@ class AnchorsDemoFrame(wx.Frame):
self.mainPanel = wx.Panel(
size=(320, 160), parent=self,
id=ID_ANCHORSDEMOFRAMEMAINPANEL, name='panel1',
style=wx.TAB_TRAVERSAL | wx.CLIP_CHILDREN,
style=wx.TAB_TRAVERSAL | wx.CLIP_CHILDREN
| wx.FULL_REPAINT_ON_RESIZE,
pos=(0, 0)
)