def doConvert(self): asset_name = str(self.tName.text()) attris = {} attris['type'] = str(self.tType.currentText()) attris['level'] = str(self.tLevel.currentText()) MAsset.convertToAssetGroup(asset_name, attris) self.tName.setText('') return True
def doConvert(self): asset_name = str(self.tName.text()) if not asset_name: return False attris = {} attris['type'] = str(self.tType.currentText()) if self.LH.isChecked(): attris['level'] = 'Height' MAsset.convertToAssetGroup(asset_name, attris) if self.LM.isChecked(): attris['level'] = 'Middle' MAsset.convertToAssetGroup(asset_name, attris) if self.LL.isChecked(): attris['level'] = 'Low' MAsset.convertToAssetGroup(asset_name, attris)