diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-04-05 19:47:23 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-04-05 19:47:23 (GMT) |
commit | b9279bc88f867d9d3b6606502a678b137329b54d (patch) | |
tree | dcd93736024ef8debb6bd925021146cced30df03 /Modules | |
parent | 2a241ca82b7267cab2dd1f4d80871d5f8d202f0e (diff) | |
download | cpython-b9279bc88f867d9d3b6606502a678b137329b54d.zip cpython-b9279bc88f867d9d3b6606502a678b137329b54d.tar.gz cpython-b9279bc88f867d9d3b6606502a678b137329b54d.tar.bz2 |
Remove baseName argument from Tkapp_New, as it apparently
isn't used anymore.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 97f85f9..d45e2d4 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -583,7 +583,7 @@ static void EnableEventHook(void); /* Forward */ static void DisableEventHook(void); /* Forward */ static TkappObject * -Tkapp_New(char *screenName, char *baseName, char *className, +Tkapp_New(char *screenName, char *className, int interactive, int wantobjects, int wantTk, int sync, char *use) { TkappObject *v; @@ -2812,7 +2812,8 @@ static PyObject * Tkinter_Create(PyObject *self, PyObject *args) { char *screenName = NULL; - char *baseName = NULL; + char *baseName = NULL; /* XXX this is not used anymore; + try getting rid of it. */ char *className = NULL; int interactive = 0; int wantobjects = 0; @@ -2820,11 +2821,6 @@ Tkinter_Create(PyObject *self, PyObject *args) int sync = 0; /* pass -sync to wish */ char *use = NULL; /* pass -use to wish */ - baseName = strrchr(Py_GetProgramName(), '/'); - if (baseName != NULL) - baseName++; - else - baseName = Py_GetProgramName(); className = "Tk"; if (!PyArg_ParseTuple(args, "|zssiiiiz:create", @@ -2833,7 +2829,7 @@ Tkinter_Create(PyObject *self, PyObject *args) &sync, &use)) return NULL; - return (PyObject *) Tkapp_New(screenName, baseName, className, + return (PyObject *) Tkapp_New(screenName, className, interactive, wantobjects, wantTk, sync, use); } |