示例#1
0
 def open(self, id, contents):
     self.id = id
     FrameWork.DialogWindow.open(self, ID_MAIN)
     self.dlg.SetDialogDefaultItem(MAIN_SHOW)
     self.contents = contents
     self.ctl = self.dlg.GetDialogItemAsControl(MAIN_LIST)
     h = self.ctl.GetControlData_Handle(Controls.kControlListBoxPart, Controls.kControlListBoxListHandleTag)
     self.list = List.as_List(h)
     self.setlist()
示例#2
0
	def open(self, id, contents):
		self.id = id
		FrameWork.DialogWindow.open(self, ID_MAIN)
		self.dlg.SetDialogDefaultItem(MAIN_SHOW)
		self.contents = contents
		self.ctl = self.dlg.GetDialogItemAsControl(MAIN_LIST)
		h = self.ctl.GetControlData_Handle(Controls.kControlListBoxPart, 
				Controls.kControlListBoxListHandleTag)
		self.list = List.as_List(h)
		self.setlist()
示例#3
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)
示例#4
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()
示例#5
0
 def __init__(self, dlg, item, content=[], multi=0):
     self.control = dlg.GetDialogItemAsControl(item)
     ##         d1, d2, self.rect = wid.GetDialogItem(item)
     self.rect = (0, 0, 1000, 1000)  # DBG
     h = self.control.GetControlData_Handle(
         Controls.kControlListBoxPart,
         Controls.kControlListBoxListHandleTag)
     self.list = List.as_List(h)
     self.list.LAddRow(len(content), 0)
     self.multi = multi
     if not multi:
         self.list.selFlags = Lists.lOnlyOne
     self._data = []
     self._setcontent(0, len(content), content)
     self.dlg = dlg
     self.wid = dlg.GetDialogWindow()
示例#6
0
"""browsepict - Display all "cicn" resources found"""
示例#7
0
"""browsepict - Display all "cicn" resources found"""
示例#8
0
"""browsepict - Display all "PICT" resources found"""
示例#9
0
"""browsepict - Display all "PICT" resources found"""
示例#10
0
#
示例#11
0
# Test List module.