Can anybody helps me ? Splitting windows

try this :slight_smile:

import wx

class MyApp(wx.App):
     def OnInit(self):
         frame = wx.Frame(None, -1, "Mock-up")
         sizer = wx.BoxSizer(wx.VERTICAL)
         top = wx.Panel(frame, -1)
         top.SetBackgroundColour('red')
         top.SetSizeHints(-1,100)
         splitter = wx.SplitterWindow(frame, -1)
         middle = wx.Panel(splitter, -1)
         middle.SetBackgroundColour('yellow')
         bottom = wx.Panel(splitter, -1)
         bottom.SetBackgroundColour('blue')

         splitter.SetMinimumPaneSize(100)
         splitter.SplitHorizontally(middle, bottom, -100)

         sizer.Add(top, 0, wx.EXPAND)
         sizer.Add(splitter, 1, wx.EXPAND)
         frame.SetSizer(sizer)

         frame.Show()
         frame.SetSize((800, 600))
         return True

MyApp(0).MainLoop()

···

On Tue, 20 Jul 2004 11:31:03 +0200, fowlertrainer@anonym.hu <fowlertrainer@anonym.hu> wrote:

Hi !

I use Delphi before wxPy. In Delphi I very simply split the dialog to more section, I need to use only the TSplitter component.

In py I cannot find a same component.

This is my dialog:

[pretty ASCI picture]

I need to split vertically to 3 sections.

But:
- the top section must be fixed size
- the centered flexible
- the bottom must be resizable but min Ymin sized (YMin=100pixel)

Can anybody helps me with a simple source code - how I do it ???

--
Peter Damoc
Hacker Wannabe
http://www.sigmacore.net/