私は何人かの顧客を持っていますcustomer1
。そして、私は彼らのデータを次のような辞書に保存しました:
customer1 = {"Age": 20, "Gender": "Male",}
Tkinter エントリ ボックスと、次のテキスト変数が必要ですsearchterm
。
searchterm = StringVar()
entry = Entry(frame, textvariable=searchterm)
次に、入力した値を使用して辞書を検索し、データをテキスト ウィジェットに表示できるようにしたいと考えています。
私はpythonが初めてなので、助けてください。