def get_clipboard_text_and_convert(paste_list=False):
 txt = GetClipboardText()
 if txt:
  if (paste_list and (' DCTB ' in txt)):
   (array, flag) = make_list_of_list(txt)
   if flag:
    txt = repr(array)
   else:
    txt = ('array(%s)' % repr(array))
   txt = ''.join([c for c in txt if (c not in '  DCTB \r\n')])
 return txt

def get_clipboard_text_and_convert ( paste_list = False ) : txt = GetClipboardText ( ) if txt : if ( paste_list and ( ' DCTB ' in txt ) ) : ( array , flag ) = make_list_of_list ( txt ) if flag : txt = repr ( array ) else : txt = ( 'array(%s)' % repr ( array ) ) txt = '' . join ( [ c for c in txt if ( c not in '  DCTB \r\n' ) ] ) return txt
get txt from clipboard .