Message56017
| Author |
taleinat |
| Recipients |
taleinat |
| Date |
2007年09月18日.22:03:30 |
| SpamBayes Score |
0.01633754 |
| Marked as misclassified |
No |
| Message-id |
<1190153010.77.0.038299898053.issue1178@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Patch adding a 'Paste Code' item to the 'Edit' menu, as well as hotkeys.
Using 'Paste Code' instead of the normal paste will remove prompts ('>>>
' or '... ') from the code, and also remove empty lines if pasting to a
shell window.
This allows easily copy/pasting code between shell and editor windows,
as well as easily pasting code from other applications (e.g. a web
browser) into IDLE.
This patch uses IDLE's PyParse.py for parsing code, and Tk's clipboard
API for interaction with the clipboard (it changes the clipboard's
contents, generates a normal paste event, and changes the contents back).
Test only on WinXP SP2 so far, needs to be tested on other platforms,
especially the clipboard interaction. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年09月18日 22:03:31 | taleinat | set | spambayes_score: 0.0163375 -> 0.01633754 recipients:
+ taleinat |
| 2007年09月18日 22:03:30 | taleinat | set | spambayes_score: 0.0163375 -> 0.0163375 messageid: <1190153010.77.0.038299898053.issue1178@psf.upfronthosting.co.za> |
| 2007年09月18日 22:03:30 | taleinat | link | issue1178 messages |
| 2007年09月18日 22:03:30 | taleinat | create |
|