Exemple #1
0
 def addItem(self, file, label, preview, tags=[], pos = None):
     item = gui.ListItem(label)
     item.file = file
     item.preview = preview
     item.tags = tags
     super(ListFileChooser, self).addItem(file, label, preview, tags)
     return self.children.addItemObject(item, pos)
 def addItem(self, file, label, preview, tags=[]):
     item = gui.ListItem(label)
     if self.multiSelect:
         item.enableCheckbox()
     item.file = file
     item.preview = preview
     item.tags = tags
     super(ListFileChooser, self).addItem(file, label, preview, tags)
     return self.children.addItemObject(item)
 def addItem(self, file, label, preview, tags=[], pos = None):
     item = gui.ListItem(label)
     item.file = file
     item.preview = preview
     item.tags = tags
     if label is not None and file is not None:
         item.setToolTip(label + "<p>" + file)
     super(ListFileChooser, self).addItem(file, label, preview, tags)
     return self.children.addItemObject(item, pos)