我尝试使用PyKDE,PyKDE.kdecore.KStandardDirs
来精确地说。根据documentation使用两个字符串调用此方法,根据PyQt4文档,我可以使用标准Python str
而不是{
>> KStandardDirs.locate()("socket", "foo")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: KStandardDirs.locate(): not enough arguments
>>> KStandardDirs.locate("socket", "foo")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: KStandardDirs.locate(): argument 1 has unexpected type 'str'
我不能使用QString
,因为它似乎不存在:
我做错什么了?在
我怀疑PyKDE还没有准备好python3,至少就错误消息而言是这样;尝试传递一个bytestring代替:
相关问题 更多 >
编程相关推荐