Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # clipboardpop.py ZZZ
- from Tkinter import *
- root = Tk()
- outA='Title/Composer Performer Time'
- outB='AllMusic'
- def clipb():
- global zzz
- zzz = root.clipboard_get()
- zzz = zzz[zzz.index(outA)+len(outA):]
- zzz = zzz[:zzz.index(outB)].splitlines()
- while len(zzz) > 3:
- title, artist = zzz[2],zzz[4]
- print artist+' - '+title
- zzz=zzz[5:]
- #
- Frame=LabelFrame(root,height=30,borderwidth=0,bg="aqua")
- Frame.pack(fill=X)
- Frame.pack_propagate(False)
- cpb=Button(Frame,text="Clipboard",command=clipb)
- cpb.pack() # side=RIGHT
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement