static PyObject * widgetAddCallback(snackWidget * s, PyObject * args);
static PyObject * widgetGetAttr(PyObject * s, char * name);
static PyObject * widgetEntrySetValue(snackWidget * s, PyObject * args);
+static PyObject * widgetLabelText(snackWidget * s, PyObject * args);
static PyObject * widgetListboxSetW(snackWidget * s, PyObject * args);
static PyObject * widgetListboxAdd(snackWidget * s, PyObject * args);
static PyObject * widgetListboxIns(snackWidget * s, PyObject * args);
static PyMethodDef widgetMethods[] = {
{ "setCallback", (PyCFunction) widgetAddCallback, METH_VARARGS, NULL },
+ { "labelText", (PyCFunction) widgetLabelText, METH_VARARGS, NULL },
{ "entrySetValue", (PyCFunction) widgetEntrySetValue, METH_VARARGS, NULL },
{ "listboxAddItem", (PyCFunction) widgetListboxAdd, METH_VARARGS, NULL },
{ "listboxInsertItem", (PyCFunction) widgetListboxIns, METH_VARARGS, NULL },
return widget;
}
+static PyObject * widgetLabelText(snackWidget * s, PyObject * args) {
+ char * label;
+
+ if (!PyArg_ParseTuple(args, "s", &label)) return NULL;
+
+ newtLabelSetText(s->co, label);
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
static snackWidget * listboxWidget(PyObject * s, PyObject * args) {
snackWidget * widget;
int height;