This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author THRlWiTi
Recipients THRlWiTi
Date 2015-05-01.11:20:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430479248.08.0.880712455727.issue24090@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-05-01 11:20:48THRlWiTisetrecipients: + THRlWiTi
2015-05-01 11:20:48THRlWiTisetmessageid: <1430479248.08.0.880712455727.issue24090@psf.upfronthosting.co.za>
2015-05-01 11:20:48THRlWiTilinkissue24090 messages
2015-05-01 11:20:47THRlWiTicreate