TkinterText
ウィジェットを使用すると、タグを使用してテキストのスタイルを設定できます。
text.tag_config('red', foreground='red')
text.insert(END, 'Red text', 'red')
タグを文字列リテラルに含めることはできますか?
擬似コード:
text.insert(END, 'This sentence has <red tag>red text</red tag> in it.')
TkinterText
ウィジェットを使用すると、タグを使用してテキストのスタイルを設定できます。
text.tag_config('red', foreground='red')
text.insert(END, 'Red text', 'red')
タグを文字列リテラルに含めることはできますか?
擬似コード:
text.insert(END, 'This sentence has <red tag>red text</red tag> in it.')