+#---------------------------------------------------------------------------
+
+class MySplitter(wxSplitterWindow):
+ def __init__(self, parent, ID, log):
+ wxSplitterWindow.__init__(self, parent, ID)
+ self.log = log
+ EVT_SPLITTER_SASH_POS_CHANGED(self, self.GetId(), self.OnSashChanged)
+
+ def OnSashChanged(self, evt):
+ self.log.WriteText("sash changed to " + str(evt.GetSashPosition()))
+