RuntimeError:选择qt4后端后从wx后端导入

时间:2018-07-11 16:39:25

标签: python

我只是尝试导入一些模块,但是遇到了这个问题?我不明白原因?谁能帮我吗?

这是发生错误的地方:

def assert_toolkit_import(names):
""" Raise an error if a toolkit with the given name should not be allowed
to be imported.
"""
if ETSConfig.toolkit and ETSConfig.toolkit not in names:
    raise RuntimeError("Importing from %s backend after selecting %s "
                       "backend!" % (names[0], ETSConfig.toolkit))

0 个答案:

没有答案