Tcl/Tk clipboard under Windows
Michael S. Schliephake
mss at kepler.de
Wed May 26 16:11:20 EDT 1999
David Ascher wrote:
>
> On Wed, 26 May 1999, Michael S. Schliephake wrote:
>
> > Has anyone remarked the following problem and possibly a solution?
> >
> > (Win-NT 4, W98 - Python 1.5.2, Tk 8.05)
> > If you copy some text from a Tkinter-prog to the clipboard and the
> > program is finished immediately, one cannot paste the clipboard content
> > into another programm. If you paste before finishing the Python-program,
> > the clipboard content is how intended and remains there.
> >
> > ...
>
> ... is this what you're doing?
>
> Tkinter._default_root.clipboard_clear()
> Tkinter._default_root.clipboard_append(errmsg)
>
> --david ascher
Yes, except that I did not use the default_root until now. I just
repeated it with a small script, which I append here. The problem is
"persistent", if you exit before pasting into another program, I cannot
find usable data in the clipboard.
Michael Schliephake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clipboard.pyw
Type: application/x-unknown-content-type-python.noconfile
Size: 445 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/19990526/cd200d2c/attachment.bin>
More information about the Python-list
mailing list