class History(SignalEmitter): (source)
HistoryPath
objects. Also has a 'current' page which should match the current page in the interface. The current page normally is the latest page in the list, but when the user navigates back in the history it can be another position.Unknown Field: signal | |
changed (): emitted when the path list changed |
Method | __init__ |
No summary |
Method | append |
No summary |
Method | get_child |
No summary |
Method | get_current |
Get current path @returns: a HistoryPath object |
Method | get_grandchild |
No summary |
Method | get_history |
Generator function that yields history records, latest first @returns: yields HistoryPath objects |
Method | get_next |
Get the next path @returns: a HistoryPath object or None if current is already the last path in the list |
Method | get_previous |
Get the previous path @returns: a HistoryPath object or None if current is already the first path in the list |
Method | get_recent |
Generator function that yields recent pages @returns: yields RecentPath objects |
Method | get_state |
No summary |
Method | set_current |
No summary |
Method | set_state |
No summary |
Class Variable | __signals__ |
Undocumented |
Instance Variable | notebook |
the Notebook |
Instance Variable | uistate |
the ConfigDict used to store the history |
Method | _on_page_deleted |
Undocumented |
Method | _on_page_moved |
Undocumented |
Method | _update_recent |
Undocumented |
Instance Variable | _current |
Undocumented |
Property | _history |
Undocumented |
Property | _recent |
Undocumented |
Inherited from SignalEmitter
:
Method | __new__ |
Undocumented |
Method | block_signals |
Returns a context manager for blocking one or more signals |
Method | connect |
Register a handler for a specific object. |
Method | connect_after |
Like connect() but handler will be called after default handler |
Method | disconnect |
Undocumented |
Method | emit |
Undocumented |
Method | emit_return_first |
Emits a signal and stops emission on the first handler that returns a not-None value. |
Method | emit_return_iter |
Returns an generator that calls one handler on each iteration and yields the return values. This allows aggregating return values. |
Method | _connect |
Undocumented |
Method | _setup_signal |
Undocumented |
Method | _teardown_signal |
Undocumented |
Parameters | |
notebook | a Notebook object |
uistate | SectionedConfigDict to store the history (history will use the 'History' section in ConfigDict) |
Parameters | |
path | Path for the current page |
Unknown Field: emits | |
changed |
Path
object. Used by the keybinding for navigating to child pages.Parameters | |
path | a Path object |
Returns | |
a HistoryPath or Path object or None |
Parameters | |
path | a Path object |
Returns | |
a HistoryPath object or None |
Returns | |
a HistoryPath object or None if current is already the last path in the list |
Returns | |
a HistoryPath object or None if current is already the first path in the list |
Parameters | |
path | a Path object |
Returns | |
a tuple of cursor and scroll position for path or (None, None) |
Parameters | |
path | a HistoryPath object |
Raises | |
ValueError | when the path is not in the history list |
Parameters | |
path | a Path object |
cursor | cursor position |
scroll | scroll position |