Pages

Main Page

class pyman.Main.Main(title, actions=None, chars=None)[source]

Bases: pyman.Page.Page

title

The title to display for all menus

chars

A list of characters to use when displaying the menu.

  • chars[0]: Character to use for the Title Border. Defaults to ‘=’
  • chars[1]: Character to use for the Menu Border. Defaults to ‘-‘
  • chars[2]: Characters to use for each entry in the menu. Defaults to ‘) ‘
current

A list that houses the stack of pages.

This is used then executing the Action pyman.Actions.Back

current_title

The current title that is being displayed

is_automated

A boolean that to determines if the CLI is running in automated mode.

This becomes True if you run pymain.Main.cli() with a list of commands, otherwise it is False.

Page Class

class pyman.Page.Page(name, parent=None, menu=None)[source]
name

The display name for this page

parent

The parent page to this page

menu

The main page for this CLI instance

actions

This is a list where the attached Actions and Pages are stored

init()[source]
choices()[source]
add(actions)[source]
add_action(action)[source]
run(index)[source]