1
在abaqus脚本编写过程中遇到问题。我正在尝试在abaqus scipt中使用tkinter。当我运行我的第一次代码的程序运行正常,但是当我运行我的程序,第二次,然后用ABAQUS以下错误退出: “意外LoadlibraryA错误193 ipc_CONNECTION_BROKEN”在Abaqus中导入tkinter时出错
我使用ABAQUS 6.14与Python 2.7 与英特尔Paralllal Stuido XE 2015年作曲家版64位更新运行2
我的插件类,如下所示:
from abaqusGui import getAFXApp, Activator
from abaqusConstants import ALL
import os
thisPath = os.path.abspath(__file__)
thisDir = os.path.dirname(thisPath)
toolset = getAFXApp().getAFXMainWindow().getPluginToolset()
toolset.registerGuiMenuButton(
buttonText='Pilot GUI',
object= Activator(os.path.join(thisDir, 'pilotDB.py')),
kernelInitString=''
)
我pilotDB类看起来是这样的:
class pilotDB:
import Tkinter
root = Tkinter.Tk()
app = pilotDB(root)
root.mainloop()
root.quit()