]> git.saurik.com Git - wxWidgets.git/commitdiff
Forgot to get rid of the old test code
authorRobin Dunn <robin@alldunn.com>
Sat, 11 Jun 2005 19:44:40 +0000 (19:44 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 11 Jun 2005 19:44:40 +0000 (19:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/splitter.py

index a0d7bfb0f754d4b074be41a44214cdf35e0335cd..7f7756ba7f3d443fb26811dfc267b51399c8db7c 100644 (file)
@@ -768,62 +768,3 @@ class MultiSplitterEvent(wx.PyCommandEvent):
 
 
 
-
-if __name__ == "__main__":
-
-    def OnChanged(evt):
-        print "Changed:", evt.GetSashIdx(), evt.GetSashPosition()
-    def OnChanging(evt):
-        print "Changing:", evt.GetSashIdx(), evt.GetSashPosition()
-        
-    
-    app = wx.App(0)
-    frm = wx.Frame(None, title="tester", size=(640,480))
-
-    #frm.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGED, OnChanged)
-    #frm.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGING, OnChanging)
-
-    #sty = 0
-    #sty = wx.SP_3DBORDER
-    #sty = wx.SP_NOSASH
-    sty = wx.SP_LIVE_UPDATE
-
-    splitter = MultiSplitterWindow(frm, style=sty)
-    #splitter.SetOrientation(wx.VERTICAL)
-    splitter.SetMinimumPaneSize(25)
-
-    #sty = wx.BORDER_NONE
-    #sty = wx.BORDER_SIMPLE
-    sty = wx.BORDER_SUNKEN
-    
-    p1 = wx.Window(splitter, style=sty)
-    p1.SetBackgroundColour("pink")
-    wx.StaticText(p1, -1, "Panel One", (5,5))
-
-    p2 = wx.Window(splitter, style=sty)
-    p2.SetBackgroundColour("sky blue")
-    wx.StaticText(p2, -1, "Panel Two", (5,5))
-    p2.SetMinSize((50,50))
-    
-    p3 = wx.Window(splitter, style=sty)
-    p3.SetBackgroundColour("yellow")
-    wx.StaticText(p3, -1, "Panel Three", (5,5))
-
-    splitter.AppendWindow(p1, 100)
-    splitter.AppendWindow(p2, 200)
-    splitter.AppendWindow(p3)
-
-    for x in range(3):
-        p = wx.Window(splitter, style=sty)
-        p.SetBackgroundColour("white")
-        wx.StaticText(p, -1, str(4+x), (5,5))
-        splitter.AppendWindow(p, 50)
-
-    #sizer = wx.BoxSizer()
-    #sizer.Add(splitter, 1, wx.EXPAND)
-    #frm.SetSizerAndFit(sizer)
-
-    frm.Show()
-    app.MainLoop()
-
-