Set some minsizes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1095,6 +1095,8 @@ class wxPythonDemo(wx.Frame):
|
|||||||
wx.Frame.__init__(self, parent, -1, title, size = (950, 720),
|
wx.Frame.__init__(self, parent, -1, title, size = (950, 720),
|
||||||
style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
|
style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
|
||||||
|
|
||||||
|
self.SetMinSize((640,480))
|
||||||
|
|
||||||
self.loaded = False
|
self.loaded = False
|
||||||
self.cwd = os.getcwd()
|
self.cwd = os.getcwd()
|
||||||
self.curOverview = ""
|
self.curOverview = ""
|
||||||
@@ -1275,8 +1277,8 @@ class wxPythonDemo(wx.Frame):
|
|||||||
splitter2.SplitHorizontally(self.nb, self.log, -160)
|
splitter2.SplitHorizontally(self.nb, self.log, -160)
|
||||||
splitter.SplitVertically(self.tree, splitter2, 200)
|
splitter.SplitVertically(self.tree, splitter2, 200)
|
||||||
|
|
||||||
splitter.SetMinimumPaneSize(20)
|
splitter.SetMinimumPaneSize(120)
|
||||||
splitter2.SetMinimumPaneSize(20)
|
splitter2.SetMinimumPaneSize(60)
|
||||||
|
|
||||||
# Make the splitter on the right expand the top window when resized
|
# Make the splitter on the right expand the top window when resized
|
||||||
def SplitterOnSize(evt):
|
def SplitterOnSize(evt):
|
||||||
|
Reference in New Issue
Block a user