[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-11-04 Thread Jon Snoo

Jon Snoo added the comment:

I tested the code posted by Victor with Python 3.5 (which uses Tcl/Tk 8.6.4) 
and I still get an empty clipboard when the script exits.

I also downloaded ActiveState's Tcl binary which is also version 8.6.4, and 
tested the minimal reproducer posted by Serhiy with this

wish issue23760.tcl

and it works i.e. I get "Result" in the system clipboard.

I don't really know what to make of this.

--
nosy: +Jon Snoo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-11-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Related Tk issues:

http://core.tcl.tk/tk/tktview/822002ff
http://core.tcl.tk/tk/tktview/732662ff
http://core.tcl.tk/tk/tktview/1844034f
http://core.tcl.tk/tk/tktview/939389ff

The problem should be fixed (at least on Windows) in the last issue, but 
perhaps Tkinter doesn't execute this code.

A workaround is to make a pause about 0.1 sec (can be depend on perfomance of 
your computer, it doesn't work if the pause is too short). Append following 
lines to you example:

r.after(100, r.destroy)
r.mainloop()

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is minimal reproducer on Tcl/Tk. I don't have a workaround.

--
status: pending - open
Added file: http://bugs.python.org/file39694/issue23760.tcl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___wm withdraw .
clipboard clear
clipboard append Result
exit___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-06-11 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware -vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-06-11 Thread Zachary Ware

Zachary Ware added the comment:

I don't believe there's anything Python can do about this, unless it can be 
confirmed that this is a bug that's been fixed in a more recent version of 
Tcl/Tk 8.6, in which case we can update our dependency.  The easy test for 
whether updating Tcl/Tk in 3.4 (which uses 8.6.1) will do any good is to try 
this out with 3.5.0b2 (which uses the latest 8.6.4).

--
resolution:  - third party
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-27 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +serhiy.storchaka, terry.reedy
stage:  - test needed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Victor Korolkevich

New submission from Victor Korolkevich:

From 
http://stackoverflow.com/questions/26321333/tkinter-in-python-3-4-on-windows-dont-post-internal-clipboard-data-to-the-windo

I use the following code to place result in clipboard.

from tkinter import Tk
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append(Result)

It works fine on Python version 3.3.5 and earlier. But in Python 3.4 it was 
receive empty clipboard. If I prevent the script from the immediate exit, 
adding input() after clipboard_append(), I see that clipboard contains the 
correct Result.

If I run script, switch to any other window and press Ctrl+V, I receive 
Result and Result remains in clipboard after script exits.

I think in tcl/tk 8.6 clipboard_clear() affect system clipboard, but 
clipboard_append affect only internal tcl/tk clipboard that transfered to 
system clipboard only by OS request. Looks like it was done in Linux, that 
don't have system clipboard.

--
components: Tkinter
messages: 239107
nosy: Victor Korolkevich
priority: normal
severity: normal
status: open
title: Tkinter in Python 3.4 on Windows don't post internal clipboard data to 
the Windows clipboard on exit
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Victor Korolkevich

Changes by Victor Korolkevich victor.korolkev...@gmail.com:


--
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23760
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com