0
ウィンドウ内にテキスト入力エフェクトを作成しようとしていますが、 "TypeError: 'Text'オブジェクトはiterableではありません。ここに私の現在のコードがあります:私は言葉 '変数を使用する場合GraphWinのタイピングエフェクト
from graphics import *
import sys
from time import sleep
window = GraphWin('Test', 1000, 700)
text = Text(Point(500, 150), "This is just a test :P")
words = ("This is just a test :P")
for char in text:
sleep(0.1)
sys.stdout.write(char)
sys.stdout.flush()
word.draw(window)
テキストはシェルで起動します私は、テキスト変数を使用してみた場合、ただし例外TypeErrorになります。 iterableにする方法はありますか?