예제 #1
0
 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()
예제 #2
0
 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)
예제 #3
0
#
예제 #4
0
"""browsepict - Display all "PICT" resources found"""
예제 #5
0
# Test List module.