tkerror(n)

πŸ“¦
version 9.0.3 Β· 3 versions
, in alpine 3.23, alpine 3.24, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’… NAME πŸ’…

Okay bestie, welcome to the tkerror(n) page from Tk Built-In Commands. This is literally the manual for tkerror, the command invoked to process background errors. ✨

πŸŽ€ SYNOPSIS πŸŽ€

tkerror message

πŸ¦‹ DESCRIPTION πŸ¦‹

🚨 Note: as of Tk 4.1, the tkerror command has been renamed to bgerror, because the event loop (which is what usually invokes it) is now part of Tcl. Using the tkerror name is deprecated. Periodt. πŸ’…

For backward compatibility, the bgerror provided by the current Tk version still tries to call tkerror if there is one (or an auto loadable one), so an old script defining that error handler should still work. But bestie, you should anyhow modify your scripts to use bgerror instead of tkerror, because that support for the old name might vanish in the future. 😭 No cap.

If that call fails, bgerror posts a dialog showing the error and offering to see the stack trace to the user. If you want your own error management, you should directly override bgerror instead of tkerror. That's the vibe check. 🫢

Documentation for bgerror is available as part of Tcl's documentation. πŸ“š

🌸 KEYWORDS 🌸

  • background error
  • reporting

Cute sign-off: this iconic little page is from Tk, version 4.1, and it’s the tkerror(n) manual. The original footer doesn’t list a date, just that source/version info β€” so that’s the whole footer tea. πŸ“πŸ’–πŸ‘‘

πŸ“¦ where this page comes from