From: mss at kepler.de (Michael S. Schliephake)
Date: Wed, 26 May 1999 22:11:20 +0200
Subject: Tcl/Tk clipboard under Windows
References: <Pine.WNT.4.04.9905261141250.67-100000@rigoletto.ski.org>
Message-ID: <374C5568.A38DA335@kepler.de>
Content-Length: 1207
X-UID: 1857                                                 

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>


