. Rect 버튼을 클릭하여 클릭하면 대화 상자가 열리고 이미지가로드됩니다. 로드 후에는 blit하지만 작동하지 않습니다. (오류). 내 코드는 다음과 같습니다.나는 이미지를로드 한 후 화면에 블럭 전송하는</p> <pre><code>tkFileDialog.askopenfilename </code></pre> <p>을 사용하려고하지만 밖으로 작동하지 않는 방법을로드하고 블리트 이미지 파이썬
if loadrect.collidepoint(mx,my) and mb[0]==1:
filename = tkFileDialog.askopenfilename(filetypes=Formats,title="Choose an image to open")
if filename!= None:
screen.blit(filename,(203,44))
어떻게 수정하나요?
감사합니다.
오류 메시지를 게시하십시오. – marue