PythonのTkinterでGUIアプリを作っていると、ユーザーに決まった選択肢の中から一つを選んでほしい、という場面がよくありますよね。例えば、都道府県のリストや、製品のカテゴリ一覧などです。テキストボックスに自由入力させると、タイプミスや表記の ...
tkinter.ttkをimportする。 コンボボックスは tkinter.ttkのComboboxオブジェクトを ・第一引数に、フレームの変数 ・引数valuesに、リストの変数 他必要なオプション引数を設定し変数作成。 フレームへの配置は、place、grid、pack いずれかを使用する。
As a follow-on to the work of @dalthviz and @ccordoba12 in #7566, I just tested this on the latest 3.x on Windows 8.1, and there appears to be a UI bug with this: when selecting a new interpreter from ...