Ejemplo n.º 1
0
    def Copy(self):
        text = self.GetSelectedText()
        if len(text) == 0:
            return

        cbIcept = self.mainControl.getClipboardInterceptor()
        if cbIcept is not None:
            cbIcept.informCopyInWikidPadStart(text=text)
            try:
                copyTextToClipboard(text)
            finally:
                cbIcept.informCopyInWikidPadStop()
        else:
            copyTextToClipboard(text)
Ejemplo n.º 2
0
    def Copy(self):
        text = self.GetSelectedText()
        if len(text) == 0:
            return

        cbIcept = self.mainControl.getClipboardInterceptor()  
        if cbIcept is not None:
            cbIcept.informCopyInWikidPadStart(text=text)
            try:
                copyTextToClipboard(text)
            finally:
                cbIcept.informCopyInWikidPadStop()
        else:
            copyTextToClipboard(text)
Ejemplo n.º 3
0
    def CopySelection(self, evt):
        text = []
        for n in self.GetSelections():
             text.append(self.GetString(n))

        copyTextToClipboard("\n".join(text))
    def CopySelection(self, evt):
        text = []
        for n in self.GetSelections():
            text.append(self.GetString(n))

        copyTextToClipboard("\n".join(text))