Exemplo n.º 1
0
 def paste(_self=cmd): # INTERNAL
     r=DEFAULT_SUCCESS
     lst = []
     if hasattr(pymol,"machine_get_clipboard"):
         lst = pymol.machine_get_clipboard()
     if len(lst):
         new_lst = []
         for a in lst:
             while len(a):
                 if ord(a[-1])>32:
                     break
                 else:
                     a=a[:-1]
             if len(a):
                 new_lst.append(a)
         r = _cmd.paste(_self._COb,new_lst)
     if _raising(r,_self): raise pymol.CmdException
     return r 
Exemplo n.º 2
0
 def paste(_self=cmd): # INTERNAL
     r=DEFAULT_SUCCESS
     lst = []
     if hasattr(pymol,"machine_get_clipboard"):
         lst = pymol.machine_get_clipboard()
     if len(lst):
         new_lst = []
         for a in lst:
             while len(a):
                 if ord(a[-1])>32:
                     break
                 else:
                     a=a[:-1]
             # if nothing in the queue, this special string is printed; so
             # we ignore it
             if len(a):
                 if a=="""PRIMARY selection doesn't exist or form "STRING" not defined""":
                     new_list = []
                 else:
                     new_lst.append(a)
         r = _cmd.paste(_self._COb,new_lst)
     if _raising(r,_self): raise pymol.CmdException
     return r 
Exemplo n.º 3
0
 def paste(_self=cmd): # INTERNAL
     r=DEFAULT_SUCCESS
     lst = []
     if hasattr(pymol,"machine_get_clipboard"):
         lst = pymol.machine_get_clipboard()
     if len(lst):
         new_lst = []
         for a in lst:
             while len(a):
                 if ord(a[-1])>32:
                     break
                 else:
                     a=a[:-1]
             # if nothing in the queue, this special string is printed; so
             # we ignore it
             if len(a):
                 if a=="""PRIMARY selection doesn't exist or form "STRING" not defined""":
                     new_list = []
                 else:
                     new_lst.append(a)
         r = _cmd.paste(_self._COb,new_lst)
     if _raising(r,_self): raise pymol.CmdException
     return r