mirror of https://github.com/python/cpython.git
Remove baseName argument from Tkapp_New, as it apparently
isn't used anymore.
This commit is contained in:
parent
2a241ca82b
commit
b9279bc88f
|
@ -583,7 +583,7 @@ static void EnableEventHook(void); /* Forward */
|
||||||
static void DisableEventHook(void); /* Forward */
|
static void DisableEventHook(void); /* Forward */
|
||||||
|
|
||||||
static TkappObject *
|
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)
|
int interactive, int wantobjects, int wantTk, int sync, char *use)
|
||||||
{
|
{
|
||||||
TkappObject *v;
|
TkappObject *v;
|
||||||
|
@ -2812,7 +2812,8 @@ static PyObject *
|
||||||
Tkinter_Create(PyObject *self, PyObject *args)
|
Tkinter_Create(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
char *screenName = NULL;
|
char *screenName = NULL;
|
||||||
char *baseName = NULL;
|
char *baseName = NULL; /* XXX this is not used anymore;
|
||||||
|
try getting rid of it. */
|
||||||
char *className = NULL;
|
char *className = NULL;
|
||||||
int interactive = 0;
|
int interactive = 0;
|
||||||
int wantobjects = 0;
|
int wantobjects = 0;
|
||||||
|
@ -2820,11 +2821,6 @@ Tkinter_Create(PyObject *self, PyObject *args)
|
||||||
int sync = 0; /* pass -sync to wish */
|
int sync = 0; /* pass -sync to wish */
|
||||||
char *use = NULL; /* pass -use to wish */
|
char *use = NULL; /* pass -use to wish */
|
||||||
|
|
||||||
baseName = strrchr(Py_GetProgramName(), '/');
|
|
||||||
if (baseName != NULL)
|
|
||||||
baseName++;
|
|
||||||
else
|
|
||||||
baseName = Py_GetProgramName();
|
|
||||||
className = "Tk";
|
className = "Tk";
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "|zssiiiiz:create",
|
if (!PyArg_ParseTuple(args, "|zssiiiiz:create",
|
||||||
|
@ -2833,7 +2829,7 @@ Tkinter_Create(PyObject *self, PyObject *args)
|
||||||
&sync, &use))
|
&sync, &use))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return (PyObject *) Tkapp_New(screenName, baseName, className,
|
return (PyObject *) Tkapp_New(screenName, className,
|
||||||
interactive, wantobjects, wantTk,
|
interactive, wantobjects, wantTk,
|
||||||
sync, use);
|
sync, use);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue