1
 def nukeScriptFolder(self, index = QModelIndex()):

         index = self.dirmodel.index(QDir.currentPath())

         fileInfo = QtCore.QFileInfo(self.dirmodel.fileInfo(index))
         #print fileInfo.fileName()        
         #path = self.dirmodel.fileinfo(index).absoluteFilePath()
         self.fileView.setRootIndex(filemodel.setRootPath(path))

当我执行上述代码时,出现以下错误

     path_index = self.dirmodel.index(QDir.currentPath()).toString()
     TypeError: 'sip.methoddescriptor' object is not callable  
4

0 回答 0