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:
@@ -12,7 +12,10 @@ static text is positioned at (0,0) and it spans 7 columns.
|
|||||||
class TestFrame(wx.Frame):
|
class TestFrame(wx.Frame):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
wx.Frame.__init__(self, None, -1, "wx.GridBagSizer")
|
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)
|
p.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
|
||||||
|
|
||||||
gbs = self.gbs = wx.GridBagSizer(5, 5)
|
gbs = self.gbs = wx.GridBagSizer(5, 5)
|
||||||
|
@@ -40,7 +40,8 @@ class AnchorsDemoFrame(wx.Frame):
|
|||||||
self.mainPanel = wx.Panel(
|
self.mainPanel = wx.Panel(
|
||||||
size=(320, 160), parent=self,
|
size=(320, 160), parent=self,
|
||||||
id=ID_ANCHORSDEMOFRAMEMAINPANEL, name='panel1',
|
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)
|
pos=(0, 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user