def __pasteLink(self): """ Сгенерировать сообщение о том, что пользователь хочет вставить ссылку на приаттаченные файлы """ files = self.__getSelectedFiles() if len(files) == 0: MessageBox(_(u"You did not select a file to paste"), _(u"Error"), wx.OK | wx.ICON_ERROR) return Application.onAttachmentPaste(files)
def __onPaste(self, event): """ Сгенерировать сообщение о том, что пользователь хочет вставить ссылку на приаттаченные файлы """ files = self.__getSelectedFiles () if len (files) == 0: MessageBox (_(u"You did not select a file to paste"), _(u"Error"), wx.OK | wx.ICON_ERROR) return Application.onAttachmentPaste (files)