Skip to content

Instantly share code, notes, and snippets.

@superseed
superseed / paged_container.py
Created October 11, 2018 13:37
A simple POC of delegating paged container for prompt_toolkit
from prompt_toolkit.layout.containers import Container
class PagedContainer(Container):
def __init__(self, children, active):
self._children = children
self._active_child = active
for child in self._children.values():
assert isinstance(child, Container)
assert self._active_child in self._children
@superseed
superseed / keybase.md
Created December 13, 2017 14:51
keybase.md

Keybase proof

I hereby claim:

  • I am superseed on github.
  • I am jrmtb (https://keybase.io/jrmtb) on keybase.
  • I have a public key ASCvZCq8M8Wf_XCFz_GBHzlCzeF_4d0zMOOXbePfmf28WQo

To claim this, I am signing this object: