[issue24090] Add a "copy variable to clipboard" option to the edit menu
irdb
report at bugs.python.org
Fri May 1 13:20:48 CEST 2015
New submission from irdb:
I suggest adding a "Copy variable to clipboard" menu option to the edit menu of IDLE.
Sometimes I need to copy a variable to clipboard, but because the variable is so long, printing it in the IDLE window makes IDLE sluggish and then selecting and copying the printed value becomes a little cumbersome.
Of-coarse as it is suggested in [1], I can do copy the variable `v` using the following commands:
from Tkinter import Tk
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append(str(v))
r.destroy()
but I think it's too much and it would be nice to have such menu option that after clicking on it a dialog box appears asking for variable name and after entering the name causes the str content of the variable to be copied to the clipboard.
[1]: https://stackoverflow.com/questions/579687/how-do-i-copy-a-string-to-the-clipboard-on-windows-using-python
----------
components: IDLE
messages: 242303
nosy: irdb
priority: normal
severity: normal
status: open
title: Add a "copy variable to clipboard" option to the edit menu
type: enhancement
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24090>
_______________________________________
More information about the Python-bugs-list
mailing list