~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Modules/tkinter.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TKINTER_H
 
2
#define TKINTER_H
 
3
 
 
4
/* This header is used to share some macros between _tkinter.c and
 
5
 * tkappinit.c */
 
6
 
 
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
 
 
17
/* Protect Tk 8.4.13 and older from a deadlock that happens when trying
 
18
 * to load tk after a failed attempt. */
 
19
#if TK_VERSION_HEX < 0x08040e02
 
20
#define TKINTER_PROTECT_LOADTK
 
21
#define TKINTER_LOADTK_ERRMSG \
 
22
        "Calling Tk_Init again after a previous call failed might deadlock"
 
23
#endif
 
24
 
 
25
#endif /* !TKINTER_H */