You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
807 B

  1. #ifndef TKINTER_H
  2. #define TKINTER_H
  3. /* This header is used to share some macros between _tkinter.c and
  4. * tkappinit.c.
  5. * Be sure to include tk.h before including this header so
  6. * TK_VERSION_HEX is properly defined. */
  7. /* TK_RELEASE_LEVEL is always one of the following:
  8. * TCL_ALPHA_RELEASE 0
  9. * TCL_BETA_RELEASE 1
  10. * TCL_FINAL_RELEASE 2
  11. */
  12. #define TK_VERSION_HEX ((TK_MAJOR_VERSION << 24) | \
  13. (TK_MINOR_VERSION << 16) | \
  14. (TK_RELEASE_SERIAL << 8) | \
  15. (TK_RELEASE_LEVEL << 0))
  16. /* Protect Tk 8.4.13 and older from a deadlock that happens when trying
  17. * to load tk after a failed attempt. */
  18. #if TK_VERSION_HEX < 0x08040e02
  19. #define TKINTER_PROTECT_LOADTK
  20. #define TKINTER_LOADTK_ERRMSG \
  21. "Calling Tk_Init again after a previous call failed might deadlock"
  22. #endif
  23. #endif /* !TKINTER_H */