-1
python3で入力ボックスを作りたいと思います。次のコードを使用します。ここに問題があります。コードを実行した後、入力ボックスが表示されました。ボックスをクリックして何かを入力する必要があります。最初にクリックせずに何かを入力したい場合、私は何ができますか?(Tk)入力にフォーカスを与える方法
from tkinter import *
master = Tk()
Label(master,text="enter sth here").grid(row=0)
e = Entry(master)
e.grid(row=0,column=1)
Button(master, text='Quit', command=master.quit).grid(row=0, column=10, sticky=W, pady=4)
mainloop()
見る(http://meta.stackoverflow.com/q/261592/ 7432) –