Message242303
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 |
|
Date |
User |
Action |
Args |
2015-05-01 11:20:48 | THRlWiTi | set | recipients:
+ THRlWiTi |
2015-05-01 11:20:48 | THRlWiTi | set | messageid: <1430479248.08.0.880712455727.issue24090@psf.upfronthosting.co.za> |
2015-05-01 11:20:48 | THRlWiTi | link | issue24090 messages |
2015-05-01 11:20:47 | THRlWiTi | create | |
|