summaryrefslogtreecommitdiffstats
path: root/Modules/tkappinit.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-23 19:33:50 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-23 19:33:50 (GMT)
commite6d9805ec4429878a7a610ae91f4156a6f7a6217 (patch)
tree8e8dec45a3f7485950d9f9993f598e5e54315972 /Modules/tkappinit.c
parent9d63ce4273941380fc1e252762d4784fc9fab585 (diff)
downloadcpython-e6d9805ec4429878a7a610ae91f4156a6f7a6217.zip
cpython-e6d9805ec4429878a7a610ae91f4156a6f7a6217.tar.gz
cpython-e6d9805ec4429878a7a610ae91f4156a6f7a6217.tar.bz2
Issue #4350: Removed a number of out-of-dated and non-working for a long time
Tkinter methods.
Diffstat (limited to 'Modules/tkappinit.c')
-rw-r--r--Modules/tkappinit.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/Modules/tkappinit.c b/Modules/tkappinit.c
index 2ed8594..7616d9d 100644
--- a/Modules/tkappinit.c
+++ b/Modules/tkappinit.c
@@ -26,9 +26,6 @@ static int tk_load_failed;
int
Tcl_AppInit(Tcl_Interp *interp)
{
-#ifdef WITH_MOREBUTTONS
- Tk_Window main_window;
-#endif
const char *_tkinter_skip_tk_init;
#ifdef TKINTER_PROTECT_LOADTK
const char *_tkinter_tk_failed;
@@ -113,29 +110,13 @@ Tcl_AppInit(Tcl_Interp *interp)
return TCL_ERROR;
}
-#ifdef WITH_MOREBUTTONS
- main_window = Tk_MainWindow(interp);
-#else
Tk_MainWindow(interp);
-#endif
#ifdef TK_AQUA
TkMacOSXInitAppleEvents(interp);
TkMacOSXInitMenus(interp);
#endif
-#ifdef WITH_MOREBUTTONS
- {
- extern Tcl_CmdProc studButtonCmd;
- extern Tcl_CmdProc triButtonCmd;
-
- Tcl_CreateCommand(interp, "studbutton", studButtonCmd,
- (ClientData) main_window, NULL);
- Tcl_CreateCommand(interp, "tributton", triButtonCmd,
- (ClientData) main_window, NULL);
- }
-#endif
-
#ifdef WITH_PIL /* 0.2b5 and later -- not yet released as of May 14 */
{
extern void TkImaging_Init(Tcl_Interp *);