tkinker メモ
問題
- brew で入れた python だと、tkinker が動作しなかった
bash
python3 -m tkinter
log
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
→ モジュールが見つからないと出る
解決方法
bash
brew install python-tk
bash
python3 -m tkinter
→ サンプルダイアログが出る