Ejemplo n.º 1
0
 def open(self, id, contents):
     self.id = id
     DialogWindow.open(self, id)
     tp, h, rect = self.wid.GetDialogItem(MAIN_LIST)
     rect2 = rect[0], rect[
         1], rect[2] - 16, rect[3] - 16  # Scroll bar space
     self.list = List.LNew(rect2, (0, 0, 1, len(contents)), (0, 0), 0,
                           self.wid, 0, 1, 1, 1)
     self.setlist(contents)