def settingWindow(self): from settingWinUI import SettingWindow dialog = SettingWindow() dialog.exec_()
except Exception as e: print e finally: read_phile.close() lst = text.split("$i =") for each in lst: if each.split()[0].split(";")[0].isdigit() : if (each.split()[-1].split(";")[0].replace('"',"")).isalnum(): imageFormatIndex[each.split()[0].split(";")[0]] = each.split()[-1].split(";")[0].replace('"',"").upper() imageFormatIndex.update({'12':'YUV'}) imageFormatIndex.update({'13':'SGI16'}) imageFormatIndex.update({'4':'TIF16'}) imageFormatIndex.update({'10':'MAYA16IFF'}) imageFormatIndex.update({'7':'MAYAIFF'}) return imageFormatIndex def run(): """Run the Snowball Batch Renderer""" win = Window() win.show() win.raise_() sys.exit(app.exec_()) if __name__ =='__main__': app = QtGui.QApplication(sys.argv) settingFile = settingFilePath.settingFile() if not os.path.isfile(settingFile): from settingWinUI import SettingWindow dialog = SettingWindow() if dialog.exec_() == dialog.Accepted: run() else: run()