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