コード例 #1
0
ファイル: quickshell.py プロジェクト: gurry/quickshell
def wcn(lines):
    ''' Writes the given lines on the Windows clipboard separating them with a newline character.'''
    if lines is not None:
        try:
            _write_to_clipboard('\n'.join(lines))
        except Exception:
            raise WindowsError("Failed to write to the clipboard.")
コード例 #2
0
ファイル: quickshell.py プロジェクト: gurry/quickshell
def wc(lines):
    ''' Writes the given lines on the Windows clipboard after concatenating them together.'''
    if lines is not None:
        try:
            _write_to_clipboard(''.join(lines))
        except Exception:
            raise WindowsError("Failed to write to the clipboard.")