LoginSignup
3
0

More than 5 years have passed since last update.

Tkinterで強制終了するときの対処法

Posted at

pythonでTkinterをつかってGUIを作成しているときにプログラム内にバグがあって、

_tkinter.TclError: bad option "configureafter#746": must be cget or configure

こんな感じのエラーで強制終了されることがたまにあります。これを強制終了しないようにするにはtry文でエラー処理をすれば解決できそうです。


try:
  (処理)
except _tkinter.TclError:
  pass
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0