Exemplo n.º 1
0
Arquivo: ui.py Projeto: ivanov/turses
    def __init__(self, contents, offset=1):
        """
        Arguments:

        `contents` is a list with the elements contained in the
        `ScrollableListBox`.

        `offset` is the number of position that `scroll_up` and `scroll_down`
        shift the cursor.
        """
        self.offset = offset

        ListBox.__init__(self, SimpleListWalker(contents))
Exemplo n.º 2
0
 def __init__(self, tags):
     tag_widgets = self._create_tag_widgets(tags)
     self.list_content = SimpleListWalker(tag_widgets)
     ListBox.__init__(self, self.list_content)
Exemplo n.º 3
0
 def __init__(self, charset, root, preload_fields, focus, options={}):
     ListBox.__init__(self, Walker(charset, root, preload_fields, focus, options))
Exemplo n.º 4
0
 def __init__(self, charset, root, preload_fields, focus, options={}):
     ListBox.__init__(self, Walker(charset, root, preload_fields, focus, options))
Exemplo n.º 5
0
 def __init__(self, body):
     ListBox.__init__(self, body)
Exemplo n.º 6
0
 def __init__(self):
     self._contents = SimpleListWalker([])
     ListBox.__init__(self, self._contents)
     self.client = JujuClient()