Message150279
| Author |
roger.serwy |
| Recipients |
Ramchandra Apte, roger.serwy |
| Date |
2011年12月28日.03:07:18 |
| SpamBayes Score |
1.9282184e-06 |
| Marked as misclassified |
No |
| Message-id |
<1325041640.3.0.172714688379.issue13659@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If you're on Linux, run this as your first command in IDLE:
import pydoc; pydoc.pager = lambda text: pydoc.tempfilepager(pydoc.plain(text), 'xterm -e less')
If Windows:
import pydoc; pydoc.pager = lambda text: pydoc.tempfilepager(pydoc.plain(text), 'notepad')
All help() output for objects will now display outside of IDLE.
The Squeezer extension does something similar for output that is longer than 30 lines.
It should be possible to create a custom pager for the subprocess which communicates with IDLE to display this text. RPCProxy could be used to accomplish this in conjunction with the textView module. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月28日 03:07:20 | roger.serwy | set | recipients:
+ roger.serwy, Ramchandra Apte |
| 2011年12月28日 03:07:20 | roger.serwy | set | messageid: <1325041640.3.0.172714688379.issue13659@psf.upfronthosting.co.za> |
| 2011年12月28日 03:07:19 | roger.serwy | link | issue13659 messages |
| 2011年12月28日 03:07:19 | roger.serwy | create |
|