"(name, event, x, y, width, height, initial, min, max, [tooltip]) - Create a \
261
"(name, event, x, y, width, height, initial, min, max, [tooltip], [callback], [clickstep], [precision]) - Create a \
262
262
new Number button\n\n\
263
263
(name) A string to display on the button\n\
264
264
(event) The event number to pass to the button event function when activated\n\
266
266
(width, height) The button width and height\n\
267
267
(initial, min, max) Three values (int or float) specifying the initial and \
268
268
limit values.\n\
269
[tooltip=] The button's tooltip";
269
[tooltip=] The button's tooltip\n\
270
[callback=] The button's callback\n\
271
[clickstep=] Click step for the button\n\
272
[precision=] How many decimal places to maintain, if not given, it is calculated depending on range, otherwise 1,2,3 or 4. Larger values are clamped to 4";
270
273
271
274
static char Method_String_doc[] =
272
275
"(name, event, x, y, width, height, initial, length, [tooltip]) - Create a \
611
614
612
615
if( err ) {
613
616
PyErr_Print( );
617
PyErr_Clear( );
618
PySys_SetObject("last_traceback", NULL);
619
614
620
script->flags = 0; /* mark script struct for deletion */
615
621
SCRIPT_SET_NULL(script);
616
622
script->scriptname[0] = '\0';
656
662
}
657
663
658
664
Py_XDECREF( result );
659
Py_DECREF( args );
665
Py_XDECREF( args );
660
666
}
661
667
662
668
/* BPY_spacescript_do_pywin_draw, the static spacescript_do_pywin_buttons and