[Python-checkins] python/dist/src/Modules _tkinter.c,1.164,1.165
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Wed Feb 18 21:44:24 EST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12035/Modules
Modified Files:
_tkinter.c
Log Message:
Remove gcc warning from using "main". Use METH_NOARGS instead of METH_VARARGS
Index: _tkinter.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.164
retrieving revision 1.165
diff -C2 -d -r1.164 -r1.165
*** _tkinter.c 18 Feb 2004 05:59:53 -0000 1.164
--- _tkinter.c 19 Feb 2004 02:44:22 -0000 1.165
***************
*** 2574,2584 ****
{
Tcl_Interp *interp = Tkapp_Interp(self);
! Tk_Window main;
const char * _tk_exists = NULL;
PyObject *res = NULL;
int err;
! main = Tk_MainWindow(interp);
! if (!PyArg_ParseTuple(args, ":loadtk"))
! return NULL;
/* We want to guard against calling Tk_Init() multiple times */
--- 2574,2582 ----
{
Tcl_Interp *interp = Tkapp_Interp(self);
! Tk_Window main_window;
const char * _tk_exists = NULL;
PyObject *res = NULL;
int err;
! main_window = Tk_MainWindow(interp);
/* We want to guard against calling Tk_Init() multiple times */
***************
*** 2672,2676 ****
{"quit", Tkapp_Quit, METH_VARARGS},
{"interpaddr", Tkapp_InterpAddr, METH_VARARGS},
! {"loadtk", Tkapp_TkInit, METH_VARARGS},
{NULL, NULL}
};
--- 2670,2674 ----
{"quit", Tkapp_Quit, METH_VARARGS},
{"interpaddr", Tkapp_InterpAddr, METH_VARARGS},
! {"loadtk", Tkapp_TkInit, METH_NOARGS},
{NULL, NULL}
};
More information about the Python-checkins
mailing list