Message211032
| Author |
taleinat |
| Recipients |
martin.panter, rhettinger, roger.serwy, taleinat |
| Date |
2014年02月11日.22:43:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1392158591.1.0.704841479634.issue6143@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Removing text before "iomark" can be done by using the underlying Text widget directly. See how the Squeezer extension does this in issue1529353. This should simplify the implementation significantly.
I also took a look at the version of the extension in IdleX. I'm thinking of adapting this for CPython's IDLE. Some questions:
1. Is there a reason that text.dump() isn't called inside ClearWindowDeleteCommand.do()?
2. What is the purpose of strip_ansi()?
3. Does IDLE support multi-line prompts, or is that just IdleX? As a side note, it seems that in IDLE the debugger will override the prompt with '>>> ' whenever it is shut down (see PyShell.close_debugger); perhaps this is a bug?
4. I see ClearWindowDeleteCommand just calls text.delete() and text.insert to modify text before the iomark. Will this work on regular IDLE as well, or this is possible only in IdleX? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年02月11日 22:43:11 | taleinat | set | recipients:
+ taleinat, rhettinger, roger.serwy, martin.panter |
| 2014年02月11日 22:43:11 | taleinat | set | messageid: <1392158591.1.0.704841479634.issue6143@psf.upfronthosting.co.za> |
| 2014年02月11日 22:43:11 | taleinat | link | issue6143 messages |
| 2014年02月11日 22:43:10 | taleinat | create |
|