Example #1
0
 def __init__(self, height, scroll=0, returnExit=0,
              width=0, showCursor=0, multiple=0, border=0):
     self.w = _snack.listbox(
         height,
         scroll,
         returnExit,
         showCursor,
         multiple,
         border)
     self.key2item = {}
     self.item2key = {}
     if (width):
         self.w.listboxSetWidth(width)
Example #2
0
 def __init__(self, height, scroll = 0, returnExit = 0, width = 0, showCursor = 0, multiple = 0, border = 0):
     self.w = _snack.listbox(height, scroll, returnExit, showCursor, multiple, border)
     self.key2item = {}
     self.item2key = {}
     if (width):
         self.w.listboxSetWidth(width)