X windows and Python?

Paul Rubin http
Tue Aug 15 14:39:16 EDT 2006


I'd like to program my Python script to put a string into the X
windows cut buffer.  Can anyone suggest the simplest way to do that?
Maybe I can do it by putting up a Tkinter text widget, sticking the
string into it, and selecting it (I'm checking the docs) but uggh.
I'd prefer not to have to put anything on the screen.  I just want to
put the string into the cut buffer so I can paste it into another
program.

Thanks for any suggestions.



More information about the Python-list mailing list