def open(self, id, contents): self.id = id FrameWork.DialogWindow.open(self, ID_MAIN) self.dlg.SetDialogDefaultItem(MAIN_SHOW) tp, h, rect = self.dlg.GetDialogItem(MAIN_LIST) rect2 = rect[0] + 1, rect[1] + 1, rect[2] - 17, rect[ 3] - 17 # Scroll bar space self.list = List.LNew(rect2, (0, 0, 1, len(contents)), (0, 0), 0, self.wid, 0, 1, 1, 1) self.contents = contents self.setlist()
def open(self, id, contents): self.id = id DialogWindow.open(self, id) Qd.SetPort(self.wid) tp, h, rect = self.dlg.GetDialogItem(MAIN_LIST) self.listrect = rect rect2 = rect[0] + 1, rect[1] + 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)
#
"""browsepict - Display all "PICT" resources found"""
# Test List module.