PYTHON/Error Data

TypeError: setText(self, str): argument 1 has unexpected type 'list'

  • -

[오류 코드]

TypeError: setText(self, str): argument 1 has unexpected type 'list'

 

[해결 방법]

str()을 통해 문자열로 바꾸어주면 입력이 가능하다.

self.textEdit_23.setText(valuable)

## 해결 방법 ##
self.textEdit_23.setText(str(valuable))

 

 

 


728x90
반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.