Changeset 819 for libcaca/trunk/python
- Timestamp:
- Apr 19, 2006, 12:10:58 PM (16 years ago)
- Location:
- libcaca/trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/python/pypycaca.c
r769 r819 23 23 {"set_width", pycaca_set_width, METH_VARARGS, "Set width"}, 24 24 {"set_height", pycaca_set_height, METH_VARARGS, "Set height"}, 25 {"set_ window_title", pycaca_set_window_title, METH_VARARGS, "Set window titl"},26 {"get_ window_width", pycaca_get_window_width, METH_NOARGS, "Get window width"},27 {"get_ window_height", pycaca_get_window_height, METH_NOARGS, "Get Window height"},25 {"set_display_title", pycaca_set_display_title, METH_VARARGS, "Set window titl"}, 26 {"get_display_width", pycaca_get_display_width, METH_NOARGS, "Get window width"}, 27 {"get_display_height", pycaca_get_display_height, METH_NOARGS, "Get Window height"}, 28 28 {"refresh", pycaca_refresh, METH_NOARGS, "Refresh window"}, 29 29 {"end", pycaca_end, METH_NOARGS, "End libcaca"}, … … 256 256 257 257 static PyObject * 258 pycaca_set_ window_title(PyObject *self, PyObject *args)258 pycaca_set_display_title(PyObject *self, PyObject *args) 259 259 { 260 260 int ret; 261 261 const char *str; 262 262 if (!PyArg_ParseTuple(args, "s", &str)); 263 ret = caca_set_ window_title(str);263 ret = caca_set_display_title(str); 264 264 return Py_BuildValue("i", ret); /* FIXME */ 265 265 } 266 266 267 267 static PyObject * 268 pycaca_get_ window_width(PyObject *self, PyObject *args)269 { 270 int ret = caca_get_ window_width();271 return Py_BuildValue("i", ret); 272 } 273 274 static PyObject * 275 pycaca_get_ window_height(PyObject *self, PyObject *args)276 { 277 int ret = caca_get_ window_height();268 pycaca_get_display_width(PyObject *self, PyObject *args) 269 { 270 int ret = caca_get_display_width(); 271 return Py_BuildValue("i", ret); 272 } 273 274 static PyObject * 275 pycaca_get_display_height(PyObject *self, PyObject *args) 276 { 277 int ret = caca_get_display_height(); 278 278 return Py_BuildValue("i", ret); 279 279 } -
libcaca/trunk/python/pypycaca.h
r769 r819 39 39 pycaca_set_height(PyObject *self, PyObject *args); 40 40 static PyObject * 41 pycaca_set_ window_title(PyObject *self, PyObject *args);41 pycaca_set_display_title(PyObject *self, PyObject *args); 42 42 static PyObject * 43 pycaca_get_ window_width(PyObject *self, PyObject *args);43 pycaca_get_display_width(PyObject *self, PyObject *args); 44 44 static PyObject * 45 pycaca_get_ window_height(PyObject *self, PyObject *args);45 pycaca_get_display_height(PyObject *self, PyObject *args); 46 46 static PyObject * 47 47 pycaca_refresh(PyObject *self, PyObject *args);
Note: See TracChangeset
for help on using the changeset viewer.