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()
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()
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()
"""browsepict - Display all "cicn" resources found"""
"""browsepict - Display all "cicn" resources found"""
"""browsepict - Display all "PICT" resources found"""
"""browsepict - Display all "PICT" resources found"""