I would like to create a scrollable screen in text mode, like the one obtained when typing help(object) in the interpreter. Is there a cross-platform module I can use to easily implement this?
For example:
>>> def jhelp(object):
>>> text = # get text for object
>>> display_text(text) # display a scrollable screen. How do I do this?
>>>
>>> l = [1,2,3]
>>> jhelp(l)
from pydoc import ttypager
def jhelp(object):
text = # get text for object
ttypager(text) # display a scrollable screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With