diff options
| author | Jeff Armstrong <jeffrey.armstrong@approximatrix.com> | 2011-07-25 21:50:26 -0400 |
|---|---|---|
| committer | Jeff Armstrong <jeffrey.armstrong@approximatrix.com> | 2011-07-25 21:50:26 -0400 |
| commit | e4d9f600d8359e82b7a689896727080d570ab8a8 (patch) | |
| tree | c135a917b2c58152bf60ce474c505c1f7ba468c7 /lib/py_aes.c | |
| parent | 5eaecae93f7ba32b6bec9515dfa465130bc8b808 (diff) | |
| download | gempy-e4d9f600d8359e82b7a689896727080d570ab8a8.tar.gz gempy-e4d9f600d8359e82b7a689896727080d570ab8a8.zip | |
Added menu highlight/normal switch. Fixed dialog handling. Extended simple application.
Diffstat (limited to 'lib/py_aes.c')
| -rw-r--r-- | lib/py_aes.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/py_aes.c b/lib/py_aes.c index e221ba8..2372705 100644 --- a/lib/py_aes.c +++ b/lib/py_aes.c @@ -530,6 +530,26 @@ int ret; return Py_None; } +PyObject* __CDECL py_menu_tnormal(PyObject *self, PyObject *args) +{ +PyObject *object; +int action; +int menu; +int ret; + + if(!PyArg_ParseTuple(args,"Oii",&object, &menu, &action)) + return NULL; + + ret = menu_tnormal(PyCapsule_GetPointer(object,NULL),(short)menu,(short)action); + + if(ret == 0) { + PyErr_SetString(GEMError,"Menu tnormal failed to set properly"); + return NULL; + } + Py_INCREF(Py_None); + return Py_None; +} + /* Object Library */ PyObject* __CDECL py_objc_draw(PyObject *self, PyObject *args) { |
