+ start, end = self.tc1.GetSelection()
+ text = self.tc1.GetValue()
+ if wxPlatform == "__WXMSW__": # This is why GetStringSelection was added
+ text = text.replace('\n', '\r\n')
+ self.log.write("single-line GetSelection(): (%d, %d)\n"
+ "\tGetStringSelection(): %s\n"
+ "\tSelectedText: %s\n" %
+ (start, end,
+ self.tc1.GetStringSelection(),
+ repr(text[start:end])))
+
+