次のように、ワードラップを無効にして水平スクロールバーを使用してテキストウィンドウに書き込もうとしています:
root = Toplevel()
root.geometry("%dx%d+0+0" % (350,400))
af=Frame(root)
chtext = Text(af, width=45, wrap=None,font=("Arial",12))
chxscrollbar=Scrollbar(chtext, orient=HORIZONTAL, command=chtext.xview)
chtext["xscrollcommand"]=chxscrollbar.set
af.pack(fill="both", expand=True)
chtext.pack(side="left", expand=1, fill="both")
chxscrollbar.pack(side="bottom", fill="x", expand=False)
私の問題は、私が書いたものがまだワードラップされていることです...明らかな何かが欠けていますか???
ありがとう!