Home | History | Annotate | Download | only in Modules

Lines Matching refs:PyObject

289 static PyObject *Tkinter_TclError;
292 static PyObject *excInCmd;
293 static PyObject *valInCmd;
294 static PyObject *trbInCmd;
301 static PyObject *
302 Tkinter_Error(PyObject *v)
352 AsString(PyObject *value, PyObject *tmp)
358 PyObject *v = PyUnicode_AsUTF8String(value);
370 PyObject *v = PyObject_Str(value);
387 Merge(PyObject *args)
389 PyObject *tmp = NULL;
429 PyObject *v = PyTuple_GetItem(args, i);
469 static PyObject *
472 PyObject *r = PyUnicode_DecodeUTF8(s, size, NULL);
502 static PyObject *
505 PyObject *r;
525 static PyObject *
532 static PyObject *
537 PyObject *v;
558 PyObject *w;
577 static PyObject *
578 SplitObj(PyObject *arg)
582 PyObject *elem, *newelem, *result;
635 PyObject *s = PyUnicode_AsUTF8String(arg);
651 PyObject *v = Split(list);
825 PyObject *result = Tkinter_Error((PyObject *)v);
838 Py_DECREF((PyObject *)v);
869 PyObject *string; /* This cannot cause cycles. */
875 static PyObject *
885 return (PyObject*)self;
896 static PyObject *
908 PyTclObject_TclString(PyObject *self)
917 static PyObject *
934 static PyObject *
949 static PyObject *
971 static PyObject*
1050 asBignumObj(PyObject *value)
1054 PyObject *hexstr;
1088 AsObj(PyObject *value)
1215 PyObject *v = PyObject_Str(value);
1224 static PyObject *
1225 fromBoolean(PyObject* tkapp, Tcl_Obj *value)
1234 static PyObject*
1235 fromWideIntObj(PyObject* tkapp, Tcl_Obj *value)
1257 static PyObject*
1258 fromBignumObj(PyObject* tkapp, Tcl_Obj *value)
1263 PyObject *res;
1284 PyObject *res2 = PyNumber_Negative(res);
1293 static PyObject*
1294 FromObj(PyObject* tkapp, Tcl_Obj *value)
1296 PyObject *result = NULL;
1351 PyObject *elem;
1383 PyObject *result;
1437 PyObject *args;
1439 PyObject **res;
1440 PyObject **exc_type, **exc_value, **exc_tb;
1459 Tkapp_CallArgs(PyObject *args, Tcl_Obj** objStore, int *pobjc)
1490 PyObject *v = PyTuple_GetItem(args, i);
1514 static PyObject*
1517 PyObject *res = NULL;
1524 res = FromObj((PyObject*)self, value);
1591 interpreter thread, so we ship the PyObject* args to the target thread,
1594 static PyObject *
1595 Tkapp_Call(PyObject *selfptr, PyObject *args)
1600 PyObject *res = NULL;
1606 PyObject* item = PyTuple_GetItem(args, 0);
1616 PyObject *exc_type, *exc_value, *exc_tb;
1670 static PyObject *
1671 Tkapp_GlobalCall(PyObject *self, PyObject *args)
1680 PyObject *res = NULL;
1701 static PyObject *
1702 Tkapp_Eval(PyObject *self, PyObject *args)
1705 PyObject *res = NULL;
1725 static PyObject *
1726 Tkapp_GlobalEval(PyObject *self, PyObject *args)
1729 PyObject *res = NULL;
1748 static PyObject *
1749 Tkapp_EvalFile(PyObject *self, PyObject *args)
1752 PyObject *res = NULL;
1773 static PyObject *
1774 Tkapp_Record(PyObject *self, PyObject *args)
1777 PyObject *res = NULL;
1797 static PyObject *
1798 Tkapp_AddErrorInfo(PyObject *self, PyObject *args)
1819 typedef PyObject* (*EventFunc)(PyObject*, PyObject *args, int flags);
1826 PyObject *self;
1827 PyObject *args;
1830 PyObject **res;
1831 PyObject **exc_type;
1832 PyObject **exc_val;
1838 varname_converter(PyObject *in, void *_out)
1872 PyObject *exc, *val, *tb;
1896 static PyObject*
1897 var_invoke(EventFunc func, PyObject *selfptr, PyObject *args, int flags)
1904 PyObject *res, *exc_type, *exc_val;
1942 static PyObject *
1943 SetVar(PyObject *self, PyObject *args, int flags)
1946 PyObject *newValue;
1947 PyObject *res = NULL;
1997 static PyObject *
1998 Tkapp_SetVar(PyObject *self, PyObject *args)
2003 static PyObject *
2004 Tkapp_GlobalSetVar(PyObject *self, PyObject *args)
2011 static PyObject *
2012 GetVar(PyObject *self, PyObject *args, int flags)
2015 PyObject *res = NULL;
2042 static PyObject *
2043 Tkapp_GetVar(PyObject *self, PyObject *args)
2048 static PyObject *
2049 Tkapp_GlobalGetVar(PyObject *self, PyObject *args)
2056 static PyObject *
2057 UnsetVar(PyObject *self, PyObject *args, int flags)
2061 PyObject *res = NULL;
2081 static PyObject *
2082 Tkapp_UnsetVar(PyObject *self, PyObject *args)
2087 static PyObject *
2088 Tkapp_GlobalUnsetVar(PyObject *self, PyObject *args)
2097 static PyObject *
2098 Tkapp_GetInt(PyObject *self, PyObject *args)
2103 PyObject *result;
2109 PyObject* o = PyTuple_GetItem(args, 0);
2145 static PyObject *
2146 Tkapp_GetDouble(PyObject *self, PyObject *args)
2152 PyObject *o = PyTuple_GetItem(args, 0);
2166 static PyObject *
2167 Tkapp_GetBoolean(PyObject *self, PyObject *arg)
2194 static PyObject *
2195 Tkapp_ExprString(PyObject *self, PyObject *args)
2198 PyObject *res = NULL;
2218 static PyObject *
2219 Tkapp_ExprLong(PyObject *self, PyObject *args)
2222 PyObject *res = NULL;
2243 static PyObject *
2244 Tkapp_ExprDouble(PyObject *self, PyObject *args)
2247 PyObject *res = NULL;
2268 static PyObject *
2269 Tkapp_ExprBoolean(PyObject *self, PyObject *args)
2272 PyObject *res = NULL;
2293 static PyObject *
2294 Tkapp_SplitList(PyObject *self, PyObject *args)
2299 PyObject *arg, *v;
2315 PyObject *s = FromObj(self, objv[i]);
2342 PyObject *s = PyString_FromString(argv[i]);
2356 static PyObject *
2357 Tkapp_Split(PyObject *self, PyObject *args)
2359 PyObject *arg, *v;
2380 PyObject *s = FromObj(self, objv[i]);
2399 static PyObject *
2400 Tkapp_Merge(PyObject *self, PyObject *args)
2403 PyObject *res = NULL;
2419 PyObject *self;
2420 PyObject *func;
2439 PyObject *func, *arg, *res;
2455 PyObject *s = fromTclString(argv[i + 1]);
2528 static PyObject *
2529 Tkapp_CreateCommand(PyObject *selfptr, PyObject *args)
2534 PyObject *func;
2599 static PyObject *
2600 Tkapp_DeleteCommand(PyObject *selfptr, PyObject *args)
2650 PyObject *func;
2651 PyObject *file;
2659 NewFHCD(PyObject *func, PyObject *file, int id)
2697 PyObject *func, *file, *arg, *res;
2715 static PyObject *
2716 Tkapp_CreateFileHandler(PyObject *self, PyObject *args)
2720 PyObject *file, *func;
2767 static PyObject *
2768 Tkapp_DeleteFileHandler(PyObject *self, PyObject *args)
2770 PyObject *file;
2819 PyObject *func;
2822 static PyObject *
2823 Tktt_DeleteTimerHandler(PyObject *self, PyObject *args)
2826 PyObject *func = v->func;
2850 Tktt_New(PyObject *func)
2868 Tktt_Dealloc(PyObject *self)
2871 PyObject *func = v->func;
2878 static PyObject *
2879 Tktt_Repr(PyObject *self)
2889 static PyObject *
2890 Tktt_GetAttr(PyObject *self, char *name)
2921 PyObject *func = v->func;
2922 PyObject *res;
2945 static PyObject *
2946 Tkapp_CreateTimerHandler(PyObject *self, PyObject *args)
2949 PyObject *func;
2986 return (PyObject *) v;
2992 static PyObject *
2993 Tkapp_MainLoop(PyObject *selfptr, PyObject *args)
3076 static PyObject *
3077 Tkapp_DoOneEvent(PyObject *self, PyObject *args)
3097 static PyObject *
3098 Tkapp_Quit(PyObject *self, PyObject *args)
3115 static PyObject *
3116 Tkapp_InterpAddr(PyObject *self, PyObject *args)
3125 static PyObject *
3126 Tkapp_TkInit(PyObject *self, PyObject *args)
3173 static PyObject *
3174 Tkapp_WantObjects(PyObject *self, PyObject *args)
3188 static PyObject *
3189 Tkapp_WillDispatch(PyObject *self, PyObject *args)
3201 static PyObject *
3202 Tkapp_CreateByteArray(PyObject *self, PyObject *args)
3206 PyObject *res = NULL;
3276 Tkapp_Dealloc(PyObject *self)
3286 static PyObject *
3287 Tkapp_GetAttr(PyObject *self, char *name)
3315 PyObject* tuple;
3337 _flatten1(FlattenContext* context, PyObject* item, int depth)
3355 PyObject *o = PyList_GET_ITEM(item, i);
3375 PyObject *o = PyTuple_GET_ITEM(item, i);
3395 static PyObject *
3396 Tkinter_Flatten(PyObject* self, PyObject* args)
3399 PyObject* item;
3425 static PyObject *
3426 Tkinter_Create(PyObject *self, PyObject *args)
3454 return (PyObject *) Tkapp_New(screenName, baseName, className,
3459 static PyObject *
3460 Tkinter_setbusywaitinterval(PyObject *self, PyObject *args)
3483 static PyObject *
3484 Tkinter_getbusywaitinterval(PyObject *self, PyObject *args)
3615 ins_long(PyObject *d, char *name, long val)
3617 PyObject *v = PyInt_FromLong(val);
3624 ins_string(PyObject *d, char *name, char *val)
3626 PyObject *v = PyString_FromString(val);
3637 PyObject *m, *d;
3665 PyDict_SetItemString(d, "TkappType", (PyObject *)&Tkapp_Type);
3668 PyDict_SetItemString(d, "TkttType", (PyObject *)&Tktt_Type);
3671 PyDict_SetItemString(d, "Tcl_Obj", (PyObject *)&PyTclObject_Type);