%{_libdir}/libnewt.a
%changelog
-- add support for listbox multiple selection and border to snack
- (patch by Shawn Starr)
+- add support to snack for multiple selection and border in listbox
+ and cursorAtEnd in entry (patch by Shawn Starr)
- fix scrollbar positioning in listbox
- cope with backward system time jumps (#240691)
- free helplines and windows in newtFinished, check for overflow (#239992)
if returnExit is set, return from Form when exiting this element, else
proceed to next entry widget.
- value(self): return value.
- - set(text) : set the text
+ - set(text, cursorAtEnd = 1) : set the text
- setFlags (flag, sense) : flags can be FLAG_DISABLED, FLAGS_SET, FLAGS_RESET, FLAGS_TOGGLE
"""
def value(self):
return self.w.entryValue
- def set(self, text):
- return self.w.entrySetValue(text)
+ def set(self, text, cursorAtEnd = 1):
+ return self.w.entrySetValue(text, cursorAtEnd)
def setFlags (self, flag, sense):
return self.w.entrySetFlags(flag, sense)
static PyObject * widgetEntrySetValue(snackWidget * s, PyObject * args) {
char * val;
+ int cursorAtEnd = 1;
- if (!PyArg_ParseTuple(args, "s", &val))
+ if (!PyArg_ParseTuple(args, "s|i", &val, &cursorAtEnd))
return NULL;
- newtEntrySet(s->co, val, 1);
+ newtEntrySet(s->co, val, cursorAtEnd);
Py_INCREF(Py_None);
return Py_None;