Basic Structure¶
- import
- create an object
- run()
from ppager.ppager import Pager
my_text="""
Some kind of text.
ppager is mainly designed to display multiple line texts.
"""
# create a Pager object
my_pager = Pager(
text=my_text.splitlines(),
# other attributes (optional)
)
# and run it
my_pager.run()
Info
Pager.run() returns a code that informs you about how Pager object ended. You can read Return codes documentation for more.