python - What is a good way to copy data from a Tkinter screen? -



python - What is a good way to copy data from a Tkinter screen? -

i using python 2.7 on windows. trying write info table tkinter frame using labels , arranging info grid. seems work fine. want able select info in table using mouse , re-create clipboard. there way this? should using different widget in tkinter?

row=1 col=0 sep=frame(root) itemcat in summary: label(sep, text=str(itemcat), fg='red', bg='yellow').grid(row=row, column=col,sticky='nsew',padx=1, pady=1) row+=1

the easiest way utilize canvas draw grid , save postscript file. able select info have click in 2 diagonal corners or utilize b2 or b3 button click start, , release end, , utilize function capture coordinates of 2 events. afaik have recreate grid tkinter pil image can saved .png .jpg .gif or .bmp file

python table user-interface tkinter clipboard

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -