X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebf4302cbe16578f60e51dca83e3defaebb6db28..0b9d8fe18e02e9d848d205c3f36812cd56fc1bcd:/wxPython/demo/wxDynamicSashWindow.py diff --git a/wxPython/demo/wxDynamicSashWindow.py b/wxPython/demo/wxDynamicSashWindow.py index 02abd17c42..9c9d1fa5b7 100644 --- a/wxPython/demo/wxDynamicSashWindow.py +++ b/wxPython/demo/wxDynamicSashWindow.py @@ -12,13 +12,13 @@ class TestView(wxStyledTextCtrl): wxStyledTextCtrl.__init__(self, parent, ID, style=wxNO_BORDER) self.dyn_sash = parent self.log = log + self.SetupScrollBars() self.SetMarginWidth(1,0) self.StyleSetFont(wxSTC_STYLE_DEFAULT, wxFont(10, wxMODERN, wxNORMAL, wxNORMAL)) - self.SetupScrollBars() EVT_DYNAMIC_SASH_SPLIT(self, -1, self.OnSplit) EVT_DYNAMIC_SASH_UNIFY(self, -1, self.OnUnify) - + #self.SetScrollWidth(500) def SetupScrollBars(self): # hook the scrollbars provided by the wxDynamicSashWindow @@ -89,6 +89,10 @@ class SimpleView(wxPanel): #---------------------------------------------------------------------- def runTest(frame, nb, log): + if wxPlatform == "__WXMAC__": + wxMessageBox("This demo currently fails on the Mac. The problem is being looked into...", "Sorry") + return + if 1: win = wxDynamicSashWindow(nb, -1, style = 0 | wxCLIP_CHILDREN @@ -149,3 +153,10 @@ You will need to set the scrollbars' event handler at three times: """ + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +