[issue40452] IDLE: preserve clipboard on closure

2020-05-19 Thread Tal Einat
Tal Einat added the comment: Looking into this further, this seems to be an issue in tkinter rather than with tcl/tk. Running `wish a.tcl` with the following simple script does leave its text in the clipboard: pack [text .t] .t insert 1.0 "Test text" clipboard clear clipboard append -- [.t

[issue40452] IDLE: preserve clipboard on closure

2020-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Tal. I should have inquired about behavior on *nix before putting so much effort into a Windows-only workaround, and not try to rush something into the beta coming out today or tomorrow. I will return to trying to do an invisible paste into a bare

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-18 Thread Tal Einat
Tal Einat added the comment: I closed the PR but IMO this issue should remain open. I am changing the title, though, since this is not actually Windows-specific. -- ___ Python tracker

[issue40452] IDLE: preserve clipboard on closure

2020-05-18 Thread Tal Einat
Change by Tal Einat : -- stage: resolved -> needs patch status: closed -> open title: IDLE: preserve clipboard on closure on Windows -> IDLE: preserve clipboard on closure ___ Python tracker

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-18 Thread E. Paine
Change by E. Paine : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-18 Thread Tal Einat
Tal Einat added the comment: I can reproduce this behavior on macOS as well, so this doesn't seem to be Windows-specific. This does not happen with other apps in general, so it is not normal behavior for apps. Testing with a minimal tkinter app (see code below) gives similar behavior, so

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: eryksun, Piping to clip.exe is not working well. On the patch, I asked if you know what Windows system call it uses, but I cannot request your review there. -- nosy: +eryksun ___ Python tracker

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Now that I think about it, I have run into enough problems with ^V not pasting something copied with ^C that I always leave source windows open until successful. I had not noticed that there is only a problem between windows (but this may be true) or after

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-17 Thread E. Paine
E. Paine added the comment: Test example: 1) Open IDLE (shell or editor) 2) Copy some text in the IDLE window 3) Close the IDLE window (instance should end) 4) Paste into application of choice Without the patch, the clipboard is cleared when the instance ends so nothing is pasted. With the

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please write out a manual test example (steps 1, 2, ..., N) that fails now and passes with the patch. -- title: IDLE preserve clipboard on closure (Windows) -> IDLE: preserve clipboard on closure on Windows versions: +Python 3.7, Python 3.8

[issue40452] IDLE preserve clipboard on closure (Windows)

2020-05-03 Thread E. Paine
Change by E. Paine : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40452] IDLE preserve clipboard on closure (Windows)

2020-04-30 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +19139 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19819 ___ Python tracker ___

[issue40452] IDLE preserve clipboard on closure (Windows)

2020-04-30 Thread E. Paine
New submission from E. Paine : Currently, on a Windows machine, the clipboard contents is lost when the root is closed. This, therefore requires you to keep the IDLE instance open until after the copy has been complete (particularly annoying when copying between different IDLE instances).