~ubuntu-branches/ubuntu/utopic/newt/utopic

« back to all changes in this revision

Viewing changes to .pc/python_memory_allocation.patch/snackmodule.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-07-01 23:06:29 UTC
  • mfrom: (2.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20130701230629-vn7p5llzt03j09mv
Tags: 0.52.15-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix python-* package descriptions.
  - Install/remove alternatives for the ubuntu palette.
  - Don't install python-newt example files.
  - Install whiptail in /bin instead of /usr/bin.
* Still build with tcl8.5 (8.6 is in universe).

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
    snackWidget * widget;
277
277
     
278
278
    widget = PyObject_NEW(snackWidget, &snackWidgetType);
 
279
    if (!widget)
 
280
        return NULL;
279
281
 
280
282
    widget->scs.cb = NULL;
281
283
    widget->scs.data = NULL;
328
330
    if (!PyArg_ParseTuple(args, "ii", &width, &fullAmount)) return NULL;
329
331
 
330
332
    widget = snackWidgetNew ();
 
333
    if (!widget)
 
334
        return NULL;
331
335
    widget->co = newtScale(-1, -1, width, fullAmount);
332
336
 
333
337
    return (PyObject *) widget;
624
628
    if (!PyArg_ParseTuple(args, "s", &label)) return NULL;
625
629
 
626
630
    widget = snackWidgetNew ();
 
631
    if (!widget)
 
632
        return NULL;
627
633
    widget->co = newtButton(-1, -1, label);
628
634
 
629
635
    return widget;
636
642
    if (!PyArg_ParseTuple(args, "s", &label)) return NULL;
637
643
 
638
644
    widget = snackWidgetNew ();
 
645
    if (!widget)
 
646
        return NULL;
639
647
    widget->co = newtCompactButton(-1, -1, label);
640
648
 
641
649
    return widget;
648
656
    if (!PyArg_ParseTuple(args, "s", &label)) return NULL;
649
657
 
650
658
    widget = snackWidgetNew ();
 
659
    if (!widget)
 
660
        return NULL;
651
661
    widget->co = newtLabel(-1, -1, label);
652
662
 
653
663
    return widget;
707
717
        return NULL;
708
718
 
709
719
    widget = snackWidgetNew ();
 
720
    if (!widget)
 
721
        return NULL;
710
722
    widget->co = newtListbox(-1, -1, height,
711
723
                             (doScroll ? NEWT_FLAG_SCROLL : 0) |
712
724
                             (returnExit ? NEWT_FLAG_RETURNEXIT : 0) |
730
742
        return NULL;
731
743
 
732
744
    widget = snackWidgetNew ();
 
745
    if (!widget)
 
746
        return NULL;
733
747
    widget->co = newtTextbox(-1, -1, width, height,
734
748
                                (scrollBar ? NEWT_FLAG_SCROLL : 0) |
735
749
                                (wrap ? NEWT_FLAG_WRAP : 0));
747
761
                return NULL;
748
762
 
749
763
    widget = snackWidgetNew ();
 
764
    if (!widget)
 
765
        return NULL;
750
766
 
751
767
    if ((PyObject *) group == Py_None)
752
768
        widget->co = newtRadiobutton(-1, -1, text, isOn, NULL);
764
780
    if (!PyArg_ParseTuple(args, "si", &text, &isOn)) return NULL;
765
781
 
766
782
    widget = snackWidgetNew ();
 
783
    if (!widget)
 
784
        return NULL;
767
785
    widget->co = newtCheckbox(-1, -1, text, isOn ? '*' : ' ', NULL, 
768
786
                                &widget->achar);
769
787
 
802
820
                          &isHidden, &isPassword, &isScrolled, &returnExit)) return NULL;
803
821
 
804
822
    widget = snackWidgetNew ();
 
823
    if (!widget)
 
824
        return NULL;
805
825
    widget->co = newtEntry(-1, -1, initial, width,
806
826
                           (const char **) &widget->apointer, 
807
827
                           (isHidden ? NEWT_FLAG_HIDDEN : 0) |
1088
1108
    void ** selection;
1089
1109
    int numselected;
1090
1110
    int i;
1091
 
    PyObject * sel;
 
1111
    PyObject * sel, * int_obj;
1092
1112
 
1093
1113
    if (!PyArg_ParseTuple(args, ""))
1094
1114
        return NULL;
1098
1118
    sel = PyList_New(0);
1099
1119
 
1100
1120
    if (!selection) {
1101
 
        return sel;
 
1121
        return sel;
1102
1122
    }
1103
1123
 
1104
 
    sel = PyList_New(0);
1105
1124
    for (i = 0; i < numselected; i++) {
1106
 
        PyList_Append(sel, PyInt_FromLong((long) selection[i]));
 
1125
        int_obj = PyInt_FromLong((long) selection[i]);
 
1126
        PyList_Append(sel, int_obj);
 
1127
        Py_DECREF(int_obj);
1107
1128
    }
1108
1129
    free(selection);
1109
1130
 
1165
1186
        (unselectable ? NEWT_CHECKBOXTREE_UNSELECTABLE : 0);
1166
1187
 
1167
1188
    widget = snackWidgetNew ();
 
1189
    if (!widget)
 
1190
        return NULL;
1168
1191
    widget->co = newtCheckboxTree(-1, -1, height, flags);
1169
1192
 
1170
1193
    widget->anint = 1;
1263
1286
 
1264
1287
    selection = newtCheckboxTreeGetEntryValue(s->co, I2P(data));
1265
1288
 
1266
 
    if (selection == -1) return NULL;
 
1289
    if (selection == -1) {
 
1290
        PyErr_SetString(PyExc_KeyError, "unknown entry");
 
1291
        return NULL;
 
1292
    }
1267
1293
 
1268
1294
    switch (selection) {
1269
1295
    case NEWT_CHECKBOXTREE_EXPANDED:
1285
1311
    void ** selection;
1286
1312
    int numselected;
1287
1313
    int i;
1288
 
    PyObject * sel;
 
1314
    PyObject * sel, * int_obj;
1289
1315
 
1290
1316
    if (!PyArg_ParseTuple(args, ""))
1291
1317
        return NULL;
1298
1324
        return sel;
1299
1325
    }
1300
1326
 
1301
 
    sel = PyList_New(0);
1302
1327
    for (i = 0; i < numselected; i++) {
1303
 
        PyList_Append(sel, PyInt_FromLong((long) selection[i]));
 
1328
        int_obj = PyInt_FromLong((long) selection[i]);
 
1329
        PyList_Append(sel, int_obj);
 
1330
        Py_DECREF(int_obj);
1304
1331
    }
1305
1332
    free(selection);
1306
1333
 
1317
1344
    return PyInt_FromLong(wstrlen(str, len));
1318
1345
}
1319
1346
 
 
1347
static void setitemstring_decref(PyObject * dict,
 
1348
                                const char * s, PyObject * o)
 
1349
{
 
1350
    PyDict_SetItemString(dict, s, o);
 
1351
    Py_DECREF(o);
 
1352
}
 
1353
 
1320
1354
void init_snack(void) {
1321
1355
    PyObject * d, * m;
1322
1356
 
1323
1357
    m = Py_InitModule("_snack", snackModuleMethods);
1324
1358
    d = PyModule_GetDict(m);
1325
1359
 
1326
 
    PyDict_SetItemString(d, "ANCHOR_LEFT", PyInt_FromLong(NEWT_ANCHOR_LEFT));
1327
 
    PyDict_SetItemString(d, "ANCHOR_TOP", PyInt_FromLong(NEWT_ANCHOR_TOP));
1328
 
    PyDict_SetItemString(d, "ANCHOR_RIGHT", PyInt_FromLong(NEWT_ANCHOR_RIGHT));
1329
 
    PyDict_SetItemString(d, "ANCHOR_BOTTOM", 
 
1360
    setitemstring_decref(d, "ANCHOR_LEFT", PyInt_FromLong(NEWT_ANCHOR_LEFT));
 
1361
    setitemstring_decref(d, "ANCHOR_TOP", PyInt_FromLong(NEWT_ANCHOR_TOP));
 
1362
    setitemstring_decref(d, "ANCHOR_RIGHT", PyInt_FromLong(NEWT_ANCHOR_RIGHT));
 
1363
    setitemstring_decref(d, "ANCHOR_BOTTOM",
1330
1364
                         PyInt_FromLong(NEWT_ANCHOR_BOTTOM));
1331
 
    PyDict_SetItemString(d, "GRID_GROWX", PyInt_FromLong(NEWT_GRID_FLAG_GROWX));
1332
 
    PyDict_SetItemString(d, "GRID_GROWY", PyInt_FromLong(NEWT_GRID_FLAG_GROWY));
1333
 
 
1334
 
    PyDict_SetItemString(d, "FD_READ", PyInt_FromLong(NEWT_FD_READ));
1335
 
    PyDict_SetItemString(d, "FD_WRITE", PyInt_FromLong(NEWT_FD_WRITE));
1336
 
    PyDict_SetItemString(d, "FD_EXCEPT", PyInt_FromLong(NEWT_FD_EXCEPT));
1337
 
 
1338
 
    PyDict_SetItemString(d, "FORM_EXIT_HOTKEY", PyString_FromString("hotkey"));
1339
 
    PyDict_SetItemString(d, "FORM_EXIT_WIDGET", PyString_FromString("widget"));
1340
 
    PyDict_SetItemString(d, "FORM_EXIT_TIMER", PyString_FromString("timer"));
1341
 
    PyDict_SetItemString(d, "FORM_EXIT_FDREADY", PyString_FromString("fdready"));
1342
 
 
1343
 
    PyDict_SetItemString(d, "KEY_TAB", PyInt_FromLong(NEWT_KEY_TAB));
1344
 
    PyDict_SetItemString(d, "KEY_ENTER", PyInt_FromLong(NEWT_KEY_ENTER));
1345
 
    PyDict_SetItemString(d, "KEY_SUSPEND", PyInt_FromLong(NEWT_KEY_SUSPEND));
1346
 
    PyDict_SetItemString(d, "KEY_UP", PyInt_FromLong(NEWT_KEY_UP));
1347
 
    PyDict_SetItemString(d, "KEY_DOWN", PyInt_FromLong(NEWT_KEY_DOWN));
1348
 
    PyDict_SetItemString(d, "KEY_LEFT", PyInt_FromLong(NEWT_KEY_LEFT));
1349
 
    PyDict_SetItemString(d, "KEY_RIGHT", PyInt_FromLong(NEWT_KEY_RIGHT));
1350
 
    PyDict_SetItemString(d, "KEY_BACKSPACE", PyInt_FromLong(NEWT_KEY_BKSPC));
1351
 
    PyDict_SetItemString(d, "KEY_DELETE", PyInt_FromLong(NEWT_KEY_DELETE));
1352
 
    PyDict_SetItemString(d, "KEY_HOME", PyInt_FromLong(NEWT_KEY_HOME));
1353
 
    PyDict_SetItemString(d, "KEY_END", PyInt_FromLong(NEWT_KEY_END));
1354
 
    PyDict_SetItemString(d, "KEY_UNTAB", PyInt_FromLong(NEWT_KEY_UNTAB));
1355
 
    PyDict_SetItemString(d, "KEY_PAGEUP", PyInt_FromLong(NEWT_KEY_PGUP));
1356
 
    PyDict_SetItemString(d, "KEY_PAGEGDOWN", PyInt_FromLong(NEWT_KEY_PGDN));
1357
 
    PyDict_SetItemString(d, "KEY_INSERT", PyInt_FromLong(NEWT_KEY_INSERT));
1358
 
    PyDict_SetItemString(d, "KEY_F1", PyInt_FromLong(NEWT_KEY_F1));
1359
 
    PyDict_SetItemString(d, "KEY_F2", PyInt_FromLong(NEWT_KEY_F2));
1360
 
    PyDict_SetItemString(d, "KEY_F3", PyInt_FromLong(NEWT_KEY_F3));
1361
 
    PyDict_SetItemString(d, "KEY_F4", PyInt_FromLong(NEWT_KEY_F4));
1362
 
    PyDict_SetItemString(d, "KEY_F5", PyInt_FromLong(NEWT_KEY_F5));
1363
 
    PyDict_SetItemString(d, "KEY_F6", PyInt_FromLong(NEWT_KEY_F6));
1364
 
    PyDict_SetItemString(d, "KEY_F7", PyInt_FromLong(NEWT_KEY_F7));
1365
 
    PyDict_SetItemString(d, "KEY_F8", PyInt_FromLong(NEWT_KEY_F8));
1366
 
    PyDict_SetItemString(d, "KEY_F9", PyInt_FromLong(NEWT_KEY_F9));
1367
 
    PyDict_SetItemString(d, "KEY_F10", PyInt_FromLong(NEWT_KEY_F10));
1368
 
    PyDict_SetItemString(d, "KEY_F11", PyInt_FromLong(NEWT_KEY_F11));
1369
 
    PyDict_SetItemString(d, "KEY_F12", PyInt_FromLong(NEWT_KEY_F12));
1370
 
    PyDict_SetItemString(d, "KEY_ESC", PyInt_FromLong(NEWT_KEY_ESCAPE));
1371
 
 
1372
 
    PyDict_SetItemString(d, "FLAG_DISABLED", PyInt_FromLong(NEWT_FLAG_DISABLED));
1373
 
    PyDict_SetItemString(d, "FLAGS_SET", PyInt_FromLong(NEWT_FLAGS_SET));
1374
 
    PyDict_SetItemString(d, "FLAGS_RESET", PyInt_FromLong(NEWT_FLAGS_RESET));
1375
 
    PyDict_SetItemString(d, "FLAGS_TOGGLE", PyInt_FromLong(NEWT_FLAGS_TOGGLE));
1376
 
 
1377
 
    PyDict_SetItemString(d, "COLORSET_ROOT", PyInt_FromLong(NEWT_COLORSET_ROOT));
1378
 
    PyDict_SetItemString(d, "COLORSET_BORDER", PyInt_FromLong(NEWT_COLORSET_BORDER));
1379
 
    PyDict_SetItemString(d, "COLORSET_WINDOW", PyInt_FromLong(NEWT_COLORSET_WINDOW));
1380
 
    PyDict_SetItemString(d, "COLORSET_SHADOW", PyInt_FromLong(NEWT_COLORSET_SHADOW));
1381
 
    PyDict_SetItemString(d, "COLORSET_TITLE", PyInt_FromLong(NEWT_COLORSET_TITLE));
1382
 
    PyDict_SetItemString(d, "COLORSET_BUTTON", PyInt_FromLong(NEWT_COLORSET_BUTTON));
1383
 
    PyDict_SetItemString(d, "COLORSET_ACTBUTTON", PyInt_FromLong(NEWT_COLORSET_ACTBUTTON));
1384
 
    PyDict_SetItemString(d, "COLORSET_CHECKBOX", PyInt_FromLong(NEWT_COLORSET_CHECKBOX));
1385
 
    PyDict_SetItemString(d, "COLORSET_ACTCHECKBOX", PyInt_FromLong(NEWT_COLORSET_ACTCHECKBOX));
1386
 
    PyDict_SetItemString(d, "COLORSET_ENTRY", PyInt_FromLong(NEWT_COLORSET_ENTRY));
1387
 
    PyDict_SetItemString(d, "COLORSET_LABEL", PyInt_FromLong(NEWT_COLORSET_LABEL));
1388
 
    PyDict_SetItemString(d, "COLORSET_LISTBOX", PyInt_FromLong(NEWT_COLORSET_LISTBOX));
1389
 
    PyDict_SetItemString(d, "COLORSET_ACTLISTBOX", PyInt_FromLong(NEWT_COLORSET_ACTLISTBOX));
1390
 
    PyDict_SetItemString(d, "COLORSET_TEXTBOX", PyInt_FromLong(NEWT_COLORSET_TEXTBOX));
1391
 
    PyDict_SetItemString(d, "COLORSET_ACTTEXTBOX", PyInt_FromLong(NEWT_COLORSET_ACTTEXTBOX));
1392
 
    PyDict_SetItemString(d, "COLORSET_HELPLINE", PyInt_FromLong(NEWT_COLORSET_HELPLINE));
1393
 
    PyDict_SetItemString(d, "COLORSET_ROOTTEXT", PyInt_FromLong(NEWT_COLORSET_ROOTTEXT));
1394
 
    PyDict_SetItemString(d, "COLORSET_EMPTYSCALE", PyInt_FromLong(NEWT_COLORSET_EMPTYSCALE));
1395
 
    PyDict_SetItemString(d, "COLORSET_FULLSCALE", PyInt_FromLong(NEWT_COLORSET_FULLSCALE));
1396
 
    PyDict_SetItemString(d, "COLORSET_DISENTRY", PyInt_FromLong(NEWT_COLORSET_DISENTRY));
1397
 
    PyDict_SetItemString(d, "COLORSET_COMPACTBUTTON", PyInt_FromLong(NEWT_COLORSET_COMPACTBUTTON));
1398
 
    PyDict_SetItemString(d, "COLORSET_ACTSELLISTBOX", PyInt_FromLong(NEWT_COLORSET_ACTSELLISTBOX));
1399
 
    PyDict_SetItemString(d, "COLORSET_SELLISTBOX", PyInt_FromLong(NEWT_COLORSET_SELLISTBOX));
 
1365
    setitemstring_decref(d, "GRID_GROWX", PyInt_FromLong(NEWT_GRID_FLAG_GROWX));
 
1366
    setitemstring_decref(d, "GRID_GROWY", PyInt_FromLong(NEWT_GRID_FLAG_GROWY));
 
1367
 
 
1368
    setitemstring_decref(d, "FD_READ", PyInt_FromLong(NEWT_FD_READ));
 
1369
    setitemstring_decref(d, "FD_WRITE", PyInt_FromLong(NEWT_FD_WRITE));
 
1370
    setitemstring_decref(d, "FD_EXCEPT", PyInt_FromLong(NEWT_FD_EXCEPT));
 
1371
 
 
1372
    setitemstring_decref(d, "FORM_EXIT_HOTKEY", PyString_FromString("hotkey"));
 
1373
    setitemstring_decref(d, "FORM_EXIT_WIDGET", PyString_FromString("widget"));
 
1374
    setitemstring_decref(d, "FORM_EXIT_TIMER", PyString_FromString("timer"));
 
1375
    setitemstring_decref(d, "FORM_EXIT_FDREADY", PyString_FromString("fdready"));
 
1376
 
 
1377
    setitemstring_decref(d, "KEY_TAB", PyInt_FromLong(NEWT_KEY_TAB));
 
1378
    setitemstring_decref(d, "KEY_ENTER", PyInt_FromLong(NEWT_KEY_ENTER));
 
1379
    setitemstring_decref(d, "KEY_SUSPEND", PyInt_FromLong(NEWT_KEY_SUSPEND));
 
1380
    setitemstring_decref(d, "KEY_UP", PyInt_FromLong(NEWT_KEY_UP));
 
1381
    setitemstring_decref(d, "KEY_DOWN", PyInt_FromLong(NEWT_KEY_DOWN));
 
1382
    setitemstring_decref(d, "KEY_LEFT", PyInt_FromLong(NEWT_KEY_LEFT));
 
1383
    setitemstring_decref(d, "KEY_RIGHT", PyInt_FromLong(NEWT_KEY_RIGHT));
 
1384
    setitemstring_decref(d, "KEY_BACKSPACE", PyInt_FromLong(NEWT_KEY_BKSPC));
 
1385
    setitemstring_decref(d, "KEY_DELETE", PyInt_FromLong(NEWT_KEY_DELETE));
 
1386
    setitemstring_decref(d, "KEY_HOME", PyInt_FromLong(NEWT_KEY_HOME));
 
1387
    setitemstring_decref(d, "KEY_END", PyInt_FromLong(NEWT_KEY_END));
 
1388
    setitemstring_decref(d, "KEY_UNTAB", PyInt_FromLong(NEWT_KEY_UNTAB));
 
1389
    setitemstring_decref(d, "KEY_PAGEUP", PyInt_FromLong(NEWT_KEY_PGUP));
 
1390
    setitemstring_decref(d, "KEY_PAGEGDOWN", PyInt_FromLong(NEWT_KEY_PGDN));
 
1391
    setitemstring_decref(d, "KEY_INSERT", PyInt_FromLong(NEWT_KEY_INSERT));
 
1392
    setitemstring_decref(d, "KEY_F1", PyInt_FromLong(NEWT_KEY_F1));
 
1393
    setitemstring_decref(d, "KEY_F2", PyInt_FromLong(NEWT_KEY_F2));
 
1394
    setitemstring_decref(d, "KEY_F3", PyInt_FromLong(NEWT_KEY_F3));
 
1395
    setitemstring_decref(d, "KEY_F4", PyInt_FromLong(NEWT_KEY_F4));
 
1396
    setitemstring_decref(d, "KEY_F5", PyInt_FromLong(NEWT_KEY_F5));
 
1397
    setitemstring_decref(d, "KEY_F6", PyInt_FromLong(NEWT_KEY_F6));
 
1398
    setitemstring_decref(d, "KEY_F7", PyInt_FromLong(NEWT_KEY_F7));
 
1399
    setitemstring_decref(d, "KEY_F8", PyInt_FromLong(NEWT_KEY_F8));
 
1400
    setitemstring_decref(d, "KEY_F9", PyInt_FromLong(NEWT_KEY_F9));
 
1401
    setitemstring_decref(d, "KEY_F10", PyInt_FromLong(NEWT_KEY_F10));
 
1402
    setitemstring_decref(d, "KEY_F11", PyInt_FromLong(NEWT_KEY_F11));
 
1403
    setitemstring_decref(d, "KEY_F12", PyInt_FromLong(NEWT_KEY_F12));
 
1404
    setitemstring_decref(d, "KEY_ESC", PyInt_FromLong(NEWT_KEY_ESCAPE));
 
1405
 
 
1406
    setitemstring_decref(d, "FLAG_DISABLED", PyInt_FromLong(NEWT_FLAG_DISABLED));
 
1407
    setitemstring_decref(d, "FLAGS_SET", PyInt_FromLong(NEWT_FLAGS_SET));
 
1408
    setitemstring_decref(d, "FLAGS_RESET", PyInt_FromLong(NEWT_FLAGS_RESET));
 
1409
    setitemstring_decref(d, "FLAGS_TOGGLE", PyInt_FromLong(NEWT_FLAGS_TOGGLE));
 
1410
 
 
1411
    setitemstring_decref(d, "COLORSET_ROOT", PyInt_FromLong(NEWT_COLORSET_ROOT));
 
1412
    setitemstring_decref(d, "COLORSET_BORDER", PyInt_FromLong(NEWT_COLORSET_BORDER));
 
1413
    setitemstring_decref(d, "COLORSET_WINDOW", PyInt_FromLong(NEWT_COLORSET_WINDOW));
 
1414
    setitemstring_decref(d, "COLORSET_SHADOW", PyInt_FromLong(NEWT_COLORSET_SHADOW));
 
1415
    setitemstring_decref(d, "COLORSET_TITLE", PyInt_FromLong(NEWT_COLORSET_TITLE));
 
1416
    setitemstring_decref(d, "COLORSET_BUTTON", PyInt_FromLong(NEWT_COLORSET_BUTTON));
 
1417
    setitemstring_decref(d, "COLORSET_ACTBUTTON", PyInt_FromLong(NEWT_COLORSET_ACTBUTTON));
 
1418
    setitemstring_decref(d, "COLORSET_CHECKBOX", PyInt_FromLong(NEWT_COLORSET_CHECKBOX));
 
1419
    setitemstring_decref(d, "COLORSET_ACTCHECKBOX", PyInt_FromLong(NEWT_COLORSET_ACTCHECKBOX));
 
1420
    setitemstring_decref(d, "COLORSET_ENTRY", PyInt_FromLong(NEWT_COLORSET_ENTRY));
 
1421
    setitemstring_decref(d, "COLORSET_LABEL", PyInt_FromLong(NEWT_COLORSET_LABEL));
 
1422
    setitemstring_decref(d, "COLORSET_LISTBOX", PyInt_FromLong(NEWT_COLORSET_LISTBOX));
 
1423
    setitemstring_decref(d, "COLORSET_ACTLISTBOX", PyInt_FromLong(NEWT_COLORSET_ACTLISTBOX));
 
1424
    setitemstring_decref(d, "COLORSET_TEXTBOX", PyInt_FromLong(NEWT_COLORSET_TEXTBOX));
 
1425
    setitemstring_decref(d, "COLORSET_ACTTEXTBOX", PyInt_FromLong(NEWT_COLORSET_ACTTEXTBOX));
 
1426
    setitemstring_decref(d, "COLORSET_HELPLINE", PyInt_FromLong(NEWT_COLORSET_HELPLINE));
 
1427
    setitemstring_decref(d, "COLORSET_ROOTTEXT", PyInt_FromLong(NEWT_COLORSET_ROOTTEXT));
 
1428
    setitemstring_decref(d, "COLORSET_EMPTYSCALE", PyInt_FromLong(NEWT_COLORSET_EMPTYSCALE));
 
1429
    setitemstring_decref(d, "COLORSET_FULLSCALE", PyInt_FromLong(NEWT_COLORSET_FULLSCALE));
 
1430
    setitemstring_decref(d, "COLORSET_DISENTRY", PyInt_FromLong(NEWT_COLORSET_DISENTRY));
 
1431
    setitemstring_decref(d, "COLORSET_COMPACTBUTTON", PyInt_FromLong(NEWT_COLORSET_COMPACTBUTTON));
 
1432
    setitemstring_decref(d, "COLORSET_ACTSELLISTBOX", PyInt_FromLong(NEWT_COLORSET_ACTSELLISTBOX));
 
1433
    setitemstring_decref(d, "COLORSET_SELLISTBOX", PyInt_FromLong(NEWT_COLORSET_SELLISTBOX));
1400
1434
}