当我尝试在N95手机上的PYS60 2.0上导入ScripText时,我会收到导入错误,说没有名为ScripText的模块。

我该如何解决问题是什么?

有帮助吗?

解决方案

从:http://pys60.garage.maemo.org/doc/s60/scriptext.html

注意:该服务可从“ S60第三版FP2及以后”获得。

N95是第三版FP1设备。

您可以根据本模块的可用性在运行时调整应用程序,通过将导入放在尝试中。

try:
    import scriptext
except ImportError:
    # Module could not be imported, tell the user to update to a newer device
    # or continue without it if having scriptext is not crucial to your app.
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top