Skip to main content

PTG Scroller reads scroll files with the .scrl extension and displays the contents in a PyTermGUI session

Project description

PTGScroller

Terminal User Interface eReader

PTGScroller reads scroll files with the ".scrl" extension and displays the contents in the terminal using PyTermGUI

Installation

TODO this section

Usage

Examples

ScrollLibrary Widget

from scroller.widgets import ScrollLibrary
import pytermgui as ptg

with ptg.WindowManager() as manager:
    library = ScrollLibrary(manager)
    exit = ptg.Button("X", lambda *_: window.close())
    window = ptg.Window(exit, library).set_title(library.library_name)

    manager.add(window)

Import the Library class from scroller to build a library instance from a directory. Pass the WindowManager to the ScrollLibrary class to build the library window. This example can be found in scripts/scrolllibrary_example.py.

Scrollmake

Scrollmake is a command-line tool to make scroll files. You can point the script at a directory with a content xml and image media to create the scroll file. Please see the module for usage information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptgscroller-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptgscroller-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file ptgscroller-0.1.0.tar.gz.

File metadata

  • Download URL: ptgscroller-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ptgscroller-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebc3cacd1d218a234066391d84ab510c44eeef1e24999a5eeb7d876573560480
MD5 94016b06e17dcc1fbf0babb3c0a7b312
BLAKE2b-256 f00bc16d0b316602fbff72eb2954d20cf4c8ef3dd9a8aef7f3f49aa1fe614240

See more details on using hashes here.

File details

Details for the file ptgscroller-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ptgscroller-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ptgscroller-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 885c2f971b7de445769c6922e8230cd46c04e469db1a3d450e6bd8b102af2233
MD5 f346b5f917c2deb98ebc0f5587d45ca6
BLAKE2b-256 0ed7b03c7e7061ee9d497be2baf5c473be54cad0d6a7b72b1f9d98d462802230

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page