class MimeDialog(Ui_filterMimeDialog, QDialog): def __init__(self, parent): QDialog.__init__(self, parent) self.setupUi(self) self.mime = MimeTypesTree(self.treeWidget) def selectedTypes(self): mimes = self.mime.selectedItems() result = "" for count, mime in enumerate(mimes): result += "\"" + mime + "\"" if count < len(mimes) - 1: result += "," return result
def __init__(self, parent): QDialog.__init__(self, parent) self.setupUi(self) self.mime = MimeTypesTree(self.treeWidget)
def __init__(self, parent): QDialog.__init__(self, parent) self.setupUi(self) self.setWindowTitle(self.tr("Select types to look for")) self.mime = MimeTypesTree(self.treeWidget)