C formatting using astyle --style=allman

This commit is contained in:
Roberto Alsina 2024-06-03 11:41:35 -03:00
parent d038fcd217
commit 656bb9ebad
22 changed files with 3143 additions and 3101 deletions

View File

@ -28,11 +28,11 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char bmp_create__doc__[] = static char bmp_create__doc__[] =
"Creates a bitmap" "Creates a bitmap"
; ;
static PyObject * static PyObject *
bmp_create(self, args) bmp_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -47,11 +47,11 @@ PyObject *args;
} }
static char bmp_set_data__doc__[] = static char bmp_set_data__doc__[] =
"Sets the bitmap's data" "Sets the bitmap's data"
; ;
static PyObject * static PyObject *
bmp_set_data(self, args) bmp_set_data(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -69,11 +69,11 @@ PyObject *args;
static char bmp_set_file__doc__[] = static char bmp_set_file__doc__[] =
"Loads a file into a bitmap" "Loads a file into a bitmap"
; ;
static PyObject * static PyObject *
bmp_set_file(self, args) bmp_set_file(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -103,11 +103,12 @@ static struct PyMethodDef bmp_methods[] =
/* Initialization function for the module (*must* be called initbitmap) */ /* Initialization function for the module (*must* be called initbitmap) */
static char bitmaps_module_documentation[] = static char bitmaps_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"bitmaps", "bitmaps",
bitmaps_module_documentation, bitmaps_module_documentation,

View File

@ -29,13 +29,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char box_create__doc__[] = static char box_create__doc__[] =
"Creates a Box" "Creates a Box"
; ;
static PyObject * static PyObject *
box_create(self, args) box_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -50,7 +50,8 @@ box_create(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef box_methods[] = { static struct PyMethodDef box_methods[] =
{
{"create", box_create, 1, box_create__doc__}, {"create", box_create, 1, box_create__doc__},
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
}; };
@ -59,11 +60,12 @@ static struct PyMethodDef box_methods[] = {
/* Initialization function for the module (*must* be called initbox) */ /* Initialization function for the module (*must* be called initbox) */
static char box_module_documentation[] = static char box_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"box", /* m_name */ "box", /* m_name */
box_module_documentation, /* m_doc */ box_module_documentation, /* m_doc */
@ -73,7 +75,7 @@ static struct PyModuleDef moduledef = {
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_box() PyInit_box()

View File

@ -29,13 +29,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char browser_create__doc__[] = static char browser_create__doc__[] =
"Creates a Browser" "Creates a Browser"
; ;
static PyObject * static PyObject *
browser_create(self, args) browser_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -48,13 +48,13 @@ browser_create(self, args)
} }
static char browser_add_line__doc__[] = static char browser_add_line__doc__[] =
"Adds a line to a browser" "Adds a line to a browser"
; ;
static PyObject * static PyObject *
browser_add_line(self, args) browser_add_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *l; char *l;
@ -67,13 +67,13 @@ browser_add_line(self, args)
} }
static char browser_addto__doc__[] = static char browser_addto__doc__[] =
"Adds a line to a browser, and shifts it there" "Adds a line to a browser, and shifts it there"
; ;
static PyObject * static PyObject *
browser_addto(self, args) browser_addto(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *l; char *l;
@ -86,13 +86,13 @@ browser_addto(self, args)
} }
static char browser_insert_line__doc__[] = static char browser_insert_line__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
browser_insert_line(self, args) browser_insert_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -106,13 +106,13 @@ browser_insert_line(self, args)
} }
static char browser_delete_line__doc__[] = static char browser_delete_line__doc__[] =
"Deletes a line from a browser" "Deletes a line from a browser"
; ;
static PyObject * static PyObject *
browser_delete_line(self, args) browser_delete_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -125,13 +125,13 @@ browser_delete_line(self, args)
} }
static char browser_replace_line__doc__[] = static char browser_replace_line__doc__[] =
"Replaces a line of abrowser" "Replaces a line of abrowser"
; ;
static PyObject * static PyObject *
browser_replace_line(self, args) browser_replace_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -145,13 +145,13 @@ browser_replace_line(self, args)
} }
static char browser_get_line__doc__[] = static char browser_get_line__doc__[] =
"Gets a browser's line" "Gets a browser's line"
; ;
static PyObject * static PyObject *
browser_get_line(self, args) browser_get_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -164,13 +164,13 @@ browser_get_line(self, args)
} }
static char browser_load__doc__[] = static char browser_load__doc__[] =
"Loads a file into a browser" "Loads a file into a browser"
; ;
static PyObject * static PyObject *
browser_load(self, args) browser_load(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *s; char *s;
@ -183,13 +183,13 @@ browser_load(self, args)
} }
static char browser_select_line__doc__[] = static char browser_select_line__doc__[] =
"Selects a browser line" "Selects a browser line"
; ;
static PyObject * static PyObject *
browser_select_line(self, args) browser_select_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -202,13 +202,13 @@ browser_select_line(self, args)
} }
static char browser_deselect_line__doc__[] = static char browser_deselect_line__doc__[] =
"Deselects a browser's line" "Deselects a browser's line"
; ;
static PyObject * static PyObject *
browser_deselect_line(self, args) browser_deselect_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -222,13 +222,13 @@ browser_deselect_line(self, args)
static char browser_deselect__doc__[] = static char browser_deselect__doc__[] =
"Deselects all lines in a browser" "Deselects all lines in a browser"
; ;
static PyObject * static PyObject *
browser_deselect(self, args) browser_deselect(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -241,13 +241,13 @@ browser_deselect(self, args)
static char browser_isselected_line__doc__[] = static char browser_isselected_line__doc__[] =
"Is that line selected in the browser?" "Is that line selected in the browser?"
; ;
static PyObject * static PyObject *
browser_isselected_line(self, args) browser_isselected_line(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n,r; int n,r;
@ -259,13 +259,13 @@ browser_isselected_line(self, args)
} }
static char browser_get_topline__doc__[] = static char browser_get_topline__doc__[] =
"The number of the 1st visible line in the browser" "The number of the 1st visible line in the browser"
; ;
static PyObject * static PyObject *
browser_get_topline(self, args) browser_get_topline(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -277,13 +277,13 @@ browser_get_topline(self, args)
} }
static char browser_get__doc__[] = static char browser_get__doc__[] =
"You better read the xforms manual on fl_get_browser for this one..." "You better read the xforms manual on fl_get_browser for this one..."
; ;
static PyObject * static PyObject *
browser_get(self, args) browser_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -295,13 +295,13 @@ browser_get(self, args)
} }
static char browser_get_maxline__doc__[] = static char browser_get_maxline__doc__[] =
"Returns the number of lines in the browser" "Returns the number of lines in the browser"
; ;
static PyObject * static PyObject *
browser_get_maxline(self, args) browser_get_maxline(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -313,13 +313,13 @@ browser_get_maxline(self, args)
} }
static char browser_get_screenlines__doc__[] = static char browser_get_screenlines__doc__[] =
"Returns the number of visible lines in the browser" "Returns the number of visible lines in the browser"
; ;
static PyObject * static PyObject *
browser_get_screenlines(self, args) browser_get_screenlines(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -331,13 +331,13 @@ browser_get_screenlines(self, args)
} }
static char browser_set_topline__doc__[] = static char browser_set_topline__doc__[] =
"Sets the browser's first visible line" "Sets the browser's first visible line"
; ;
static PyObject * static PyObject *
browser_set_topline(self, args) browser_set_topline(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -350,13 +350,13 @@ browser_set_topline(self, args)
} }
static char browser_set_fontsize__doc__[] = static char browser_set_fontsize__doc__[] =
"Set the browser's font size" "Set the browser's font size"
; ;
static PyObject * static PyObject *
browser_set_fontsize(self, args) browser_set_fontsize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int s; int s;
@ -369,13 +369,13 @@ browser_set_fontsize(self, args)
} }
static char browser_set_fontstyle__doc__[] = static char browser_set_fontstyle__doc__[] =
"Set the browser's font style" "Set the browser's font style"
; ;
static PyObject * static PyObject *
browser_set_fontstyle(self, args) browser_set_fontstyle(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int s; int s;
@ -388,13 +388,13 @@ browser_set_fontstyle(self, args)
} }
static char browser_set_specialkey__doc__[] = static char browser_set_specialkey__doc__[] =
"Set the character used to change text formatting in the browser" "Set the character used to change text formatting in the browser"
; ;
static PyObject * static PyObject *
browser_set_specialkey(self, args) browser_set_specialkey(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int s; int s;
@ -427,7 +427,8 @@ browser_set_specialkey(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef browser_methods[] = { static struct PyMethodDef browser_methods[] =
{
{"create", browser_create, 1, browser_create__doc__}, {"create", browser_create, 1, browser_create__doc__},
{"add_line", browser_add_line, 1, browser_add_line__doc__}, {"add_line", browser_add_line, 1, browser_add_line__doc__},
{"addto", browser_addto, 1, browser_addto__doc__}, {"addto", browser_addto, 1, browser_addto__doc__},
@ -457,10 +458,11 @@ static struct PyMethodDef browser_methods[] = {
/* Initialization function for the module (*must* be called initbrowser) */ /* Initialization function for the module (*must* be called initbrowser) */
static char browser_module_documentation[] = static char browser_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"browser", /* m_name */ "browser", /* m_name */
browser_module_documentation, /* m_doc */ browser_module_documentation, /* m_doc */
@ -470,7 +472,7 @@ static char browser_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_browser() PyInit_browser()

View File

@ -29,13 +29,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char button_create__doc__[] = static char button_create__doc__[] =
"Creates a normal button" "Creates a normal button"
; ;
static PyObject * static PyObject *
button_create(self, args) button_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -48,14 +48,14 @@ button_create(self, args)
} }
static char button_create_round__doc__[] = static char button_create_round__doc__[] =
"Creates a round button" "Creates a round button"
; ;
static PyObject * static PyObject *
button_create_round(self, args) button_create_round(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -68,13 +68,13 @@ button_create_round(self, args)
} }
static char button_create_light__doc__[] = static char button_create_light__doc__[] =
"Creates a light button" "Creates a light button"
; ;
static PyObject * static PyObject *
button_create_light(self, args) button_create_light(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -87,13 +87,13 @@ button_create_light(self, args)
} }
static char button_create_check__doc__[] = static char button_create_check__doc__[] =
"Creates a check button" "Creates a check button"
; ;
static PyObject * static PyObject *
button_create_check(self, args) button_create_check(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -106,13 +106,13 @@ button_create_check(self, args)
} }
static char button_create_bitmap__doc__[] = static char button_create_bitmap__doc__[] =
"Creates a bitmap button" "Creates a bitmap button"
; ;
static PyObject * static PyObject *
button_create_bitmap(self, args) button_create_bitmap(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -126,13 +126,13 @@ button_create_bitmap(self, args)
static char button_create_pixmap__doc__[] = static char button_create_pixmap__doc__[] =
"Creates a pixmap button" "Creates a pixmap button"
; ;
static PyObject * static PyObject *
button_create_pixmap(self, args) button_create_pixmap(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -145,13 +145,13 @@ button_create_pixmap(self, args)
} }
static char button_set_bitmap_data__doc__[] = static char button_set_bitmap_data__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
button_set_bitmap_data(self, args) button_set_bitmap_data(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -161,13 +161,13 @@ button_set_bitmap_data(self, args)
} }
static char button_set_bitmap_file__doc__[] = static char button_set_bitmap_file__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
button_set_bitmap_file(self, args) button_set_bitmap_file(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -177,13 +177,13 @@ button_set_bitmap_file(self, args)
} }
static char button_set_pixmap_data__doc__[] = static char button_set_pixmap_data__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
button_set_pixmap_data(self, args) button_set_pixmap_data(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -193,13 +193,13 @@ button_set_pixmap_data(self, args)
} }
static char button_set_pixmap_file__doc__[] = static char button_set_pixmap_file__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
button_set_pixmap_file(self, args) button_set_pixmap_file(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -209,13 +209,13 @@ button_set_pixmap_file(self, args)
} }
static char button_set_pixmap_pixmap__doc__[] = static char button_set_pixmap_pixmap__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
button_set_pixmap_pixmap(self, args) button_set_pixmap_pixmap(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -225,13 +225,13 @@ button_set_pixmap_pixmap(self, args)
} }
static char button_get_pixmap_pixmap__doc__[] = static char button_get_pixmap_pixmap__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
button_get_pixmap_pixmap(self, args) button_get_pixmap_pixmap(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -241,13 +241,13 @@ button_get_pixmap_pixmap(self, args)
} }
static char button_get__doc__[] = static char button_get__doc__[] =
"Gets the button's value" "Gets the button's value"
; ;
static PyObject * static PyObject *
button_get(self, args) button_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -259,13 +259,13 @@ button_get(self, args)
} }
static char button_set__doc__[] = static char button_set__doc__[] =
"Sets the button's value" "Sets the button's value"
; ;
static PyObject * static PyObject *
button_set(self, args) button_set(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int v; int v;
@ -278,13 +278,13 @@ button_set(self, args)
} }
static char button_get_numb__doc__[] = static char button_get_numb__doc__[] =
"Get's the number of the mouse button last pressed on the button object" "Get's the number of the mouse button last pressed on the button object"
; ;
static PyObject * static PyObject *
button_get_numb(self, args) button_get_numb(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -296,13 +296,13 @@ button_get_numb(self, args)
} }
static char button_create_generic__doc__[] = static char button_create_generic__doc__[] =
"Creates a generic button (useful mainly for extensions)" "Creates a generic button (useful mainly for extensions)"
; ;
static PyObject * static PyObject *
button_create_generic(self, args) button_create_generic(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int c,t,x,y,w,h; int c,t,x,y,w,h;
char *l; char *l;
@ -316,7 +316,8 @@ button_create_generic(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef button_methods[] = { static struct PyMethodDef button_methods[] =
{
{"create", button_create, 1, button_create__doc__}, {"create", button_create, 1, button_create__doc__},
{"create_round", button_create_round, 1, button_create_round__doc__}, {"create_round", button_create_round, 1, button_create_round__doc__},
{"create_light", button_create_light, 1, button_create_light__doc__}, {"create_light", button_create_light, 1, button_create_light__doc__},
@ -341,10 +342,11 @@ static struct PyMethodDef button_methods[] = {
/* Initialization function for the module (*must* be called initbutton) */ /* Initialization function for the module (*must* be called initbutton) */
static char button_module_documentation[] = static char button_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"button", /* m_name */ "button", /* m_name */
button_module_documentation, /* m_doc */ button_module_documentation, /* m_doc */
@ -354,7 +356,7 @@ static char button_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_button() PyInit_button()
@ -362,7 +364,7 @@ PyInit_button()
PyObject *m, *d; PyObject *m, *d;
/* Create the module and add the functions */ /* Create the module and add the functions */
m = PyModule_Create(&moduledef); m = PyModule_Create(&moduledef);
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
ErrorObject = PyBytes_FromString("button.error"); ErrorObject = PyBytes_FromString("button.error");

View File

@ -30,13 +30,13 @@ static PyObject *ErrorObject;
static char choice_create__doc__[] = static char choice_create__doc__[] =
"Creates a choice object" "Creates a choice object"
; ;
static PyObject * static PyObject *
choice_create(self, args) choice_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -50,13 +50,13 @@ choice_create(self, args)
static char choice_clear__doc__[] = static char choice_clear__doc__[] =
"Clears the list of choices" "Clears the list of choices"
; ;
static PyObject * static PyObject *
choice_clear(self, args) choice_clear(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -68,13 +68,13 @@ choice_clear(self, args)
} }
static char choice_addto__doc__[] = static char choice_addto__doc__[] =
"Adds a line to a choice object" "Adds a line to a choice object"
; ;
static PyObject * static PyObject *
choice_addto(self, args) choice_addto(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *t; char *t;
@ -87,13 +87,13 @@ choice_addto(self, args)
} }
static char choice_replace__doc__[] = static char choice_replace__doc__[] =
"Replaces a line in a choice" "Replaces a line in a choice"
; ;
static PyObject * static PyObject *
choice_replace(self, args) choice_replace(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int l; int l;
@ -107,13 +107,13 @@ choice_replace(self, args)
} }
static char choice_delete__doc__[] = static char choice_delete__doc__[] =
"Deletes a line in a choice" "Deletes a line in a choice"
; ;
static PyObject * static PyObject *
choice_delete(self, args) choice_delete(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int l; int l;
@ -126,13 +126,13 @@ choice_delete(self, args)
} }
static char choice_set__doc__[] = static char choice_set__doc__[] =
"Sets the choice" "Sets the choice"
; ;
static PyObject * static PyObject *
choice_set(self, args) choice_set(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int l; int l;
@ -145,13 +145,13 @@ choice_set(self, args)
} }
static char choice_set_text__doc__[] = static char choice_set_text__doc__[] =
"Sets the choice at the item with the given text" "Sets the choice at the item with the given text"
; ;
static PyObject * static PyObject *
choice_set_text(self, args) choice_set_text(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *t; char *t;
@ -164,13 +164,13 @@ choice_set_text(self, args)
} }
static char choice_get__doc__[] = static char choice_get__doc__[] =
"Gets the choice's selected option number" "Gets the choice's selected option number"
; ;
static PyObject * static PyObject *
choice_get(self, args) choice_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -182,13 +182,13 @@ choice_get(self, args)
} }
static char choice_get_maxitems__doc__[] = static char choice_get_maxitems__doc__[] =
"Gets the total number of items in the choice" "Gets the total number of items in the choice"
; ;
static PyObject * static PyObject *
choice_get_maxitems(self, args) choice_get_maxitems(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -200,13 +200,13 @@ choice_get_maxitems(self, args)
} }
static char choice_get_text__doc__[] = static char choice_get_text__doc__[] =
"Gets the text of the current choice" "Gets the text of the current choice"
; ;
static PyObject * static PyObject *
choice_get_text(self, args) choice_get_text(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char t[2048]; char t[2048];
@ -218,13 +218,13 @@ choice_get_text(self, args)
} }
static char choice_set_fontsize__doc__[] = static char choice_set_fontsize__doc__[] =
"Sets the choice's fontsize" "Sets the choice's fontsize"
; ;
static PyObject * static PyObject *
choice_set_fontsize(self, args) choice_set_fontsize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -237,13 +237,13 @@ choice_set_fontsize(self, args)
} }
static char choice_set_align__doc__[] = static char choice_set_align__doc__[] =
"Sets the alignment of the choice" "Sets the alignment of the choice"
; ;
static PyObject * static PyObject *
choice_set_align(self, args) choice_set_align(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -256,13 +256,13 @@ choice_set_align(self, args)
} }
static char choice_set_item_mode__doc__[] = static char choice_set_item_mode__doc__[] =
"Sets an item's mode ?" "Sets an item's mode ?"
; ;
static PyObject * static PyObject *
choice_set_item_mode(self, args) choice_set_item_mode(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int n; int n;
@ -276,13 +276,13 @@ choice_set_item_mode(self, args)
} }
static char choice_set_item_shortcut__doc__[] = static char choice_set_item_shortcut__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
choice_set_item_shortcut(self, args) choice_set_item_shortcut(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -293,7 +293,8 @@ choice_set_item_shortcut(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef choice_methods[] = { static struct PyMethodDef choice_methods[] =
{
{"create", choice_create, 1, choice_create__doc__}, {"create", choice_create, 1, choice_create__doc__},
{"clear", choice_clear, 1, choice_clear__doc__}, {"clear", choice_clear, 1, choice_clear__doc__},
{"addto", choice_addto, 1, choice_addto__doc__}, {"addto", choice_addto, 1, choice_addto__doc__},
@ -316,11 +317,12 @@ static struct PyMethodDef choice_methods[] = {
/* Initialization function for the module (*must* be called initchoice) */ /* Initialization function for the module (*must* be called initchoice) */
static char choice_module_documentation[] = static char choice_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"choice", /* m_name */ "choice", /* m_name */
choice_module_documentation, /* m_doc */ choice_module_documentation, /* m_doc */
@ -330,7 +332,7 @@ static char choice_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_choice() PyInit_choice()

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char clock_create__doc__[] = static char clock_create__doc__[] =
"Creates a clock" "Creates a clock"
; ;
static PyObject * static PyObject *
clock_create(self, args) clock_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -47,13 +47,13 @@ clock_create(self, args)
} }
static char clock_get__doc__[] = static char clock_get__doc__[] =
"Gets the current time" "Gets the current time"
; ;
static PyObject * static PyObject *
clock_get(self, args) clock_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int h,m,s; int h,m,s;
@ -66,7 +66,8 @@ clock_get(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef clock_methods[] = { static struct PyMethodDef clock_methods[] =
{
{"create", clock_create, 1, clock_create__doc__}, {"create", clock_create, 1, clock_create__doc__},
{"get", clock_get, 1, clock_get__doc__}, {"get", clock_get, 1, clock_get__doc__},
@ -77,10 +78,11 @@ static struct PyMethodDef clock_methods[] = {
/* Initialization function for the module (*must* be called initclock) */ /* Initialization function for the module (*must* be called initclock) */
static char clock_module_documentation[] = static char clock_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"clock", /* m_name */ "clock", /* m_name */
clock_module_documentation, /* m_doc */ clock_module_documentation, /* m_doc */
@ -90,7 +92,7 @@ static char clock_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char counter_create__doc__[] = static char counter_create__doc__[] =
"Creates a counter" "Creates a counter"
; ;
static PyObject * static PyObject *
counter_create(self, args) counter_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -47,13 +47,13 @@ counter_create(self, args)
} }
static char counter_set_value__doc__[] = static char counter_set_value__doc__[] =
"Sets the value of the counter (Use only on visible counters!)" "Sets the value of the counter (Use only on visible counters!)"
; ;
static PyObject * static PyObject *
counter_set_value(self, args) counter_set_value(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -66,13 +66,13 @@ counter_set_value(self, args)
} }
static char counter_set_bounds__doc__[] = static char counter_set_bounds__doc__[] =
"Sets the counter's max & min" "Sets the counter's max & min"
; ;
static PyObject * static PyObject *
counter_set_bounds(self, args) counter_set_bounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -85,13 +85,13 @@ counter_set_bounds(self, args)
} }
static char counter_set_step__doc__[] = static char counter_set_step__doc__[] =
"Set the counter's step size (small & large)" "Set the counter's step size (small & large)"
; ;
static PyObject * static PyObject *
counter_set_step(self, args) counter_set_step(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double s,l; double s,l;
@ -104,13 +104,13 @@ counter_set_step(self, args)
} }
static char counter_set_precision__doc__[] = static char counter_set_precision__doc__[] =
"Sets the counter's precision" "Sets the counter's precision"
; ;
static PyObject * static PyObject *
counter_set_precision(self, args) counter_set_precision(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int p; int p;
@ -123,13 +123,13 @@ counter_set_precision(self, args)
} }
static char counter_get_value__doc__[] = static char counter_get_value__doc__[] =
"Returns the counter's value" "Returns the counter's value"
; ;
static PyObject * static PyObject *
counter_get_value(self, args) counter_get_value(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double r; double r;
@ -141,13 +141,13 @@ counter_get_value(self, args)
} }
static char counter_set_return__doc__[] = static char counter_set_return__doc__[] =
"Makes the counter return always or when released" "Makes the counter return always or when released"
; ;
static PyObject * static PyObject *
counter_set_return(self, args) counter_set_return(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -161,7 +161,8 @@ counter_set_return(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef counter_methods[] = { static struct PyMethodDef counter_methods[] =
{
{"create", counter_create, 1, counter_create__doc__}, {"create", counter_create, 1, counter_create__doc__},
{"set_value", counter_set_value, 1, counter_set_value__doc__}, {"set_value", counter_set_value, 1, counter_set_value__doc__},
{"set_bounds", counter_set_bounds, 1, counter_set_bounds__doc__}, {"set_bounds", counter_set_bounds, 1, counter_set_bounds__doc__},
@ -177,9 +178,10 @@ static struct PyMethodDef counter_methods[] = {
/* Initialization function for the module (*must* be called initcounter) */ /* Initialization function for the module (*must* be called initcounter) */
static char counter_module_documentation[] = static char counter_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"counter", /* m_name */ "counter", /* m_name */
counter_module_documentation, /* m_doc */ counter_module_documentation, /* m_doc */
@ -189,7 +191,7 @@ static char counter_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_counter() PyInit_counter()
@ -197,7 +199,7 @@ PyInit_counter()
PyObject *m, *d; PyObject *m, *d;
/* Create the module and add the functions */ /* Create the module and add the functions */
m = PyModule_Create(&moduledef); m = PyModule_Create(&moduledef);
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
ErrorObject = PyBytes_FromString("counter.error"); ErrorObject = PyBytes_FromString("counter.error");

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char dial_create__doc__[] = static char dial_create__doc__[] =
"Creates a dial" "Creates a dial"
; ;
static PyObject * static PyObject *
dial_create(self, args) dial_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -47,13 +47,13 @@ dial_create(self, args)
} }
static char dial_set_value__doc__[] = static char dial_set_value__doc__[] =
"Sets the dial value" "Sets the dial value"
; ;
static PyObject * static PyObject *
dial_set_value(self, args) dial_set_value(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -66,13 +66,13 @@ dial_set_value(self, args)
} }
static char dial_get_value__doc__[] = static char dial_get_value__doc__[] =
"Gets the dial's value" "Gets the dial's value"
; ;
static PyObject * static PyObject *
dial_get_value(self, args) dial_get_value(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double r; double r;
@ -84,13 +84,13 @@ dial_get_value(self, args)
} }
static char dial_set_bounds__doc__[] = static char dial_set_bounds__doc__[] =
"Sets the dial bounds" "Sets the dial bounds"
; ;
static PyObject * static PyObject *
dial_set_bounds(self, args) dial_set_bounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -103,13 +103,13 @@ dial_set_bounds(self, args)
} }
static char dial_get_bounds__doc__[] = static char dial_get_bounds__doc__[] =
"Gets the dial bounds" "Gets the dial bounds"
; ;
static PyObject * static PyObject *
dial_get_bounds(self, args) dial_get_bounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -121,13 +121,13 @@ dial_get_bounds(self, args)
} }
static char dial_set_step__doc__[] = static char dial_set_step__doc__[] =
"Sets the dial step" "Sets the dial step"
; ;
static PyObject * static PyObject *
dial_set_step(self, args) dial_set_step(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double s; double s;
@ -140,13 +140,13 @@ dial_set_step(self, args)
} }
static char dial_set_return__doc__[] = static char dial_set_return__doc__[] =
"Makes a dial return always or when released" "Makes a dial return always or when released"
; ;
static PyObject * static PyObject *
dial_set_return(self, args) dial_set_return(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -160,7 +160,8 @@ dial_set_return(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef dial_methods[] = { static struct PyMethodDef dial_methods[] =
{
{"create", dial_create, 1, dial_create__doc__}, {"create", dial_create, 1, dial_create__doc__},
{"set_value", dial_set_value, 1, dial_set_value__doc__}, {"set_value", dial_set_value, 1, dial_set_value__doc__},
{"get_value", dial_get_value, 1, dial_get_value__doc__}, {"get_value", dial_get_value, 1, dial_get_value__doc__},
@ -176,10 +177,11 @@ static struct PyMethodDef dial_methods[] = {
/* Initialization function for the module (*must* be called initdial) */ /* Initialization function for the module (*must* be called initdial) */
static char dial_module_documentation[] = static char dial_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"dial", /* m_name */ "dial", /* m_name */
dial_module_documentation, /* m_doc */ dial_module_documentation, /* m_doc */
@ -189,7 +191,7 @@ static char dial_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_dial() PyInit_dial()
@ -197,7 +199,7 @@ PyInit_dial()
PyObject *m, *d; PyObject *m, *d;
/* Create the module and add the functions */ /* Create the module and add the functions */
m = PyModule_Create(&moduledef); m = PyModule_Create(&moduledef);
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
ErrorObject = PyBytes_FromString("dial.error"); ErrorObject = PyBytes_FromString("dial.error");

View File

@ -10,8 +10,8 @@ static char forms_create__doc__[] =
; ;
static PyObject * static PyObject *
forms_create(self, args) forms_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int box,w,h; int box,w,h;
@ -29,8 +29,8 @@ static char forms_freeze__doc__[] =
; ;
static PyObject * static PyObject *
forms_freeze(self, args) forms_freeze(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -47,8 +47,8 @@ static char forms_unfreeze__doc__[] =
; ;
static PyObject * static PyObject *
forms_unfreeze(self, args) forms_unfreeze(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -65,8 +65,8 @@ static char forms_deactivate__doc__[] =
; ;
static PyObject * static PyObject *
forms_deactivate(self, args) forms_deactivate(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -83,8 +83,8 @@ static char forms_activate__doc__[] =
; ;
static PyObject * static PyObject *
forms_activate(self, args) forms_activate(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -100,8 +100,8 @@ static char forms_activate_all__doc__[] =
; ;
static PyObject * static PyObject *
forms_activate_all(self, args) forms_activate_all(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -117,8 +117,8 @@ static char forms_deactivate_all__doc__[] =
; ;
static PyObject * static PyObject *
forms_deactivate_all(self, args) forms_deactivate_all(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -134,8 +134,8 @@ static char forms_freeze_all__doc__[] =
; ;
static PyObject * static PyObject *
forms_freeze_all(self, args) forms_freeze_all(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -152,8 +152,8 @@ static char forms_unfreeze_all__doc__[] =
; ;
static PyObject * static PyObject *
forms_unfreeze_all(self, args) forms_unfreeze_all(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -169,8 +169,8 @@ static char forms_scale__doc__[] =
; ;
static PyObject * static PyObject *
forms_scale(self, args) forms_scale(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -188,8 +188,8 @@ static char forms_set_position__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_position(self, args) forms_set_position(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -207,8 +207,8 @@ static char forms_set_property__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_property(self, args) forms_set_property(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -223,8 +223,8 @@ static char forms_unset_property__doc__[] =
; ;
static PyObject * static PyObject *
forms_unset_property(self, args) forms_unset_property(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -239,8 +239,8 @@ static char forms_set_callback__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_callback(self, args) forms_set_callback(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -255,8 +255,8 @@ static char forms_set_size__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_size(self, args) forms_set_size(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -274,8 +274,8 @@ static char forms_set_hotspot__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_hotspot(self, args) forms_set_hotspot(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -291,8 +291,8 @@ static char forms_set_hotobject__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_hotobject(self, args) forms_set_hotobject(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -307,8 +307,8 @@ static char forms_set_minsize__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_minsize(self, args) forms_set_minsize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -327,8 +327,8 @@ static char forms_set_maxsize__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_maxsize(self, args) forms_set_maxsize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -347,8 +347,8 @@ static char forms_set_event_cmask__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_event_cmask(self, args) forms_set_event_cmask(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -363,8 +363,8 @@ static char forms_get_event_cmask__doc__[] =
; ;
static PyObject * static PyObject *
forms_get_event_cmask(self, args) forms_get_event_cmask(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -379,8 +379,8 @@ static char forms_set_geometry__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_geometry(self, args) forms_set_geometry(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -399,8 +399,8 @@ static char forms_get_geometry__doc__[] =
; ;
static PyObject * static PyObject *
forms_get_geometry(self, args) forms_get_geometry(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -420,8 +420,8 @@ static char forms_show__doc__[] =
; ;
static PyObject * static PyObject *
forms_show(self, args) forms_show(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form,ret; long form,ret;
@ -439,8 +439,8 @@ static char forms_hide__doc__[] =
; ;
static PyObject * static PyObject *
forms_hide(self, args) forms_hide(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -457,8 +457,8 @@ static char forms_free__doc__[] =
; ;
static PyObject * static PyObject *
forms_free(self, args) forms_free(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -475,8 +475,8 @@ static char forms_redraw__doc__[] =
; ;
static PyObject * static PyObject *
forms_redraw(self, args) forms_redraw(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -493,8 +493,8 @@ static char forms_set_dblbuffer__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_dblbuffer(self, args) forms_set_dblbuffer(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -512,8 +512,8 @@ static char forms_prepare_window__doc__[] =
; ;
static PyObject * static PyObject *
forms_prepare_window(self, args) forms_prepare_window(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -528,8 +528,8 @@ static char forms_show_window__doc__[] =
; ;
static PyObject * static PyObject *
forms_show_window(self, args) forms_show_window(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
@ -545,8 +545,8 @@ static char forms_add_object__doc__[] =
; ;
static PyObject * static PyObject *
forms_add_object(self, args) forms_add_object(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long f,o; long f,o;
@ -563,7 +563,7 @@ static char forms_get_attr__doc__[] =
; ;
static PyObject *forms_get_attr(self, args) static PyObject *forms_get_attr(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -585,8 +585,8 @@ static char forms_set_title__doc__[] =
; ;
static PyObject * static PyObject *
forms_set_title(self, args) forms_set_title(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -604,8 +604,8 @@ static char forms_get_title__doc__[] =
; ;
static PyObject * static PyObject *
forms_get_title(self, args) forms_get_title(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long form; long form;
@ -620,7 +620,8 @@ PyObject *args;
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef forms_methods[] = { static struct PyMethodDef forms_methods[] =
{
{ "create", forms_create, 1, forms_create__doc__ }, { "create", forms_create, 1, forms_create__doc__ },
{ "freeze", forms_freeze, 1, forms_freeze__doc__ }, { "freeze", forms_freeze, 1, forms_freeze__doc__ },
{ "unfreeze", forms_unfreeze, 1, forms_unfreeze__doc__ }, { "unfreeze", forms_unfreeze, 1, forms_unfreeze__doc__ },
@ -666,7 +667,8 @@ static char forms_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"forms", /* m_name */ "forms", /* m_name */
forms_module_documentation, /* m_doc */ forms_module_documentation, /* m_doc */
@ -676,25 +678,25 @@ static char forms_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_forms() PyInit_forms()
{ {
PyObject *m, *d; PyObject *m, *d;
/* Create the module and add the functions */ /* Create the module and add the functions */
m = PyModule_Create(&moduledef); m = PyModule_Create(&moduledef);
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
ErrorObject = PyBytes_FromString("forms.error"); ErrorObject = PyBytes_FromString("forms.error");
PyDict_SetItemString(d, "error", ErrorObject); PyDict_SetItemString(d, "error", ErrorObject);
/* XXXX Add constants here */ /* XXXX Add constants here */
/* Check for errors */ /* Check for errors */
if (PyErr_Occurred()) if (PyErr_Occurred())
Py_FatalError("can't initialize module forms"); Py_FatalError("can't initialize module forms");
} }

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char frame_create__doc__[] = static char frame_create__doc__[] =
"Creates a frame" "Creates a frame"
; ;
static PyObject * static PyObject *
frame_create(self, args) frame_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -48,7 +48,8 @@ frame_create(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef frame_methods[] = { static struct PyMethodDef frame_methods[] =
{
{"create", frame_create, 1, frame_create__doc__}, {"create", frame_create, 1, frame_create__doc__},
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
@ -58,10 +59,11 @@ static struct PyMethodDef frame_methods[] = {
/* Initialization function for the module (*must* be called initframe) */ /* Initialization function for the module (*must* be called initframe) */
static char frame_module_documentation[] = static char frame_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"frame", /* m_name */ "frame", /* m_name */
frame_module_documentation, /* m_doc */ frame_module_documentation, /* m_doc */
@ -71,7 +73,7 @@ static char frame_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_frame() PyInit_frame()

View File

@ -5,13 +5,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char goodies_set_font__doc__[] = static char goodies_set_font__doc__[] =
"Sets the goodies font XXXXXXBroken?" "Sets the goodies font XXXXXXBroken?"
; ;
static PyObject * static PyObject *
goodies_set_font(self, args) goodies_set_font(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int i,j; int i,j;
if (!PyArg_ParseTuple(args, "ii"),&i,&j) if (!PyArg_ParseTuple(args, "ii"),&i,&j)
@ -22,13 +22,13 @@ goodies_set_font(self, args)
} }
static char goodies_show_message__doc__[] = static char goodies_show_message__doc__[] =
"Shows a message (3 lines)" "Shows a message (3 lines)"
; ;
static PyObject * static PyObject *
goodies_show_message(self, args) goodies_show_message(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1,*s2,*s3; char *s1,*s2,*s3;
@ -41,13 +41,13 @@ goodies_show_message(self, args)
} }
static char goodies_show_alert__doc__[] = static char goodies_show_alert__doc__[] =
"Shows an alert message" "Shows an alert message"
; ;
static PyObject * static PyObject *
goodies_show_alert(self, args) goodies_show_alert(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1,*s2,*s3; char *s1,*s2,*s3;
int i; int i;
@ -60,13 +60,13 @@ goodies_show_alert(self, args)
} }
static char goodies_show_question__doc__[] = static char goodies_show_question__doc__[] =
"Shows a question" "Shows a question"
; ;
static PyObject * static PyObject *
goodies_show_question(self, args) goodies_show_question(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1; char *s1;
int v,r; int v,r;
@ -77,13 +77,13 @@ goodies_show_question(self, args)
} }
static char goodies_show_input__doc__[] = static char goodies_show_input__doc__[] =
"Asks a line of text" "Asks a line of text"
; ;
static PyObject * static PyObject *
goodies_show_input(self, args) goodies_show_input(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1,*s2,r[2048]; char *s1,*s2,r[2048];
@ -94,13 +94,13 @@ goodies_show_input(self, args)
} }
static char goodies_show_colormap__doc__[] = static char goodies_show_colormap__doc__[] =
"Shows a colormap" "Shows a colormap"
; ;
static PyObject * static PyObject *
goodies_show_colormap(self, args) goodies_show_colormap(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int i,r; int i,r;
@ -111,13 +111,13 @@ goodies_show_colormap(self, args)
} }
static char goodies_show_choice__doc__[] = static char goodies_show_choice__doc__[] =
"Shows a choice" "Shows a choice"
; ;
static PyObject * static PyObject *
goodies_show_choice(self, args) goodies_show_choice(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1,*s2,*s3,*s4,*s5,*s6; char *s1,*s2,*s3,*s4,*s5,*s6;
int i1,i2,r; int i1,i2,r;
@ -129,13 +129,13 @@ goodies_show_choice(self, args)
} }
static char goodies_set_choices_shortcut__doc__[] = static char goodies_set_choices_shortcut__doc__[] =
"Sets the choice's shortcuts" "Sets the choice's shortcuts"
; ;
static PyObject * static PyObject *
goodies_set_choices_shortcut(self, args) goodies_set_choices_shortcut(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1,*s2,*s3; char *s1,*s2,*s3;
@ -147,13 +147,13 @@ goodies_set_choices_shortcut(self, args)
} }
static char goodies_show_oneliner__doc__[] = static char goodies_show_oneliner__doc__[] =
"Shows a one-liner" "Shows a one-liner"
; ;
static PyObject * static PyObject *
goodies_show_oneliner(self, args) goodies_show_oneliner(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1; char *s1;
int i,j; int i,j;
@ -166,13 +166,13 @@ goodies_show_oneliner(self, args)
} }
static char goodies_hide_oneliner__doc__[] = static char goodies_hide_oneliner__doc__[] =
"Hides a oneliner" "Hides a oneliner"
; ;
static PyObject * static PyObject *
goodies_hide_oneliner(self, args) goodies_hide_oneliner(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -183,13 +183,13 @@ goodies_hide_oneliner(self, args)
} }
static char goodies_set_oneliner_font__doc__[] = static char goodies_set_oneliner_font__doc__[] =
"Sets the oneliner font" "Sets the oneliner font"
; ;
static PyObject * static PyObject *
goodies_set_oneliner_font(self, args) goodies_set_oneliner_font(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int i,j; int i,j;
@ -201,13 +201,13 @@ goodies_set_oneliner_font(self, args)
} }
static char goodies_set_oneliner_color__doc__[] = static char goodies_set_oneliner_color__doc__[] =
"Sets the oneliner color" "Sets the oneliner color"
; ;
static PyObject * static PyObject *
goodies_set_oneliner_color(self, args) goodies_set_oneliner_color(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int i,j; int i,j;
@ -219,13 +219,13 @@ goodies_set_oneliner_color(self, args)
} }
static char goodies_use_fselector__doc__[] = static char goodies_use_fselector__doc__[] =
"??" "??"
; ;
static PyObject * static PyObject *
goodies_use_fselector(self, args) goodies_use_fselector(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int i; int i;
@ -237,13 +237,13 @@ goodies_use_fselector(self, args)
} }
static char goodies_show_fselector__doc__[] = static char goodies_show_fselector__doc__[] =
"Shows a fselector" "Shows a fselector"
; ;
static PyObject * static PyObject *
goodies_show_fselector(self, args) goodies_show_fselector(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char *s1,*s2,*s3,*s4,r[2048]; char *s1,*s2,*s3,*s4,r[2048];
@ -254,13 +254,13 @@ goodies_show_fselector(self, args)
} }
static char goodies_set_fselector_placement__doc__[] = static char goodies_set_fselector_placement__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
goodies_set_fselector_placement(self, args) goodies_set_fselector_placement(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int i; int i;
@ -272,13 +272,13 @@ goodies_set_fselector_placement(self, args)
} }
static char goodies_set_fselector_callback__doc__[] = static char goodies_set_fselector_callback__doc__[] =
"XXXXXX Not implemented" "XXXXXX Not implemented"
; ;
static PyObject * static PyObject *
goodies_set_fselector_callback(self, args) goodies_set_fselector_callback(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -288,13 +288,13 @@ goodies_set_fselector_callback(self, args)
} }
static char goodies_get_directory__doc__[] = static char goodies_get_directory__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
goodies_get_directory(self, args) goodies_get_directory(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char r[2048]; char r[2048];
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -304,13 +304,13 @@ goodies_get_directory(self, args)
} }
static char goodies_get_pattern__doc__[] = static char goodies_get_pattern__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
goodies_get_pattern(self, args) goodies_get_pattern(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char r[2048]; char r[2048];
@ -321,13 +321,13 @@ goodies_get_pattern(self, args)
} }
static char goodies_get_filename__doc__[] = static char goodies_get_filename__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
goodies_get_filename(self, args) goodies_get_filename(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
char r[2048]; char r[2048];
@ -338,13 +338,13 @@ goodies_get_filename(self, args)
} }
static char goodies_refresh_fselector__doc__[] = static char goodies_refresh_fselector__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
goodies_refresh_fselector(self, args) goodies_refresh_fselector(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -355,13 +355,13 @@ goodies_refresh_fselector(self, args)
} }
static char goodies_add_fselector_appbutton__doc__[] = static char goodies_add_fselector_appbutton__doc__[] =
"XXXXXX Not implemented" "XXXXXX Not implemented"
; ;
static PyObject * static PyObject *
goodies_add_fselector_appbutton(self, args) goodies_add_fselector_appbutton(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -371,13 +371,13 @@ goodies_add_fselector_appbutton(self, args)
} }
static char goodies_disable_fselector_cache__doc__[] = static char goodies_disable_fselector_cache__doc__[] =
"XXXXXX Not implemented" "XXXXXX Not implemented"
; ;
static PyObject * static PyObject *
goodies_disable_fselector_cache(self, args) goodies_disable_fselector_cache(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -387,13 +387,13 @@ goodies_disable_fselector_cache(self, args)
} }
static char goodies_invalidate_fselector_cache__doc__[] = static char goodies_invalidate_fselector_cache__doc__[] =
"XXXXXX Not implemented" "XXXXXX Not implemented"
; ;
static PyObject * static PyObject *
goodies_invalidate_fselector_cache(self, args) goodies_invalidate_fselector_cache(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -403,13 +403,13 @@ goodies_invalidate_fselector_cache(self, args)
} }
static char goodies_get_fselector_form__doc__[] = static char goodies_get_fselector_form__doc__[] =
"XXXXXX Not implemented" "XXXXXX Not implemented"
; ;
static PyObject * static PyObject *
goodies_get_fselector_form(self, args) goodies_get_fselector_form(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -419,13 +419,13 @@ goodies_get_fselector_form(self, args)
} }
static char goodies_hide_fselector__doc__[] = static char goodies_hide_fselector__doc__[] =
"Hides a fselector" "Hides a fselector"
; ;
static PyObject * static PyObject *
goodies_hide_fselector(self, args) goodies_hide_fselector(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -437,7 +437,8 @@ goodies_hide_fselector(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef goodies_methods[] = { static struct PyMethodDef goodies_methods[] =
{
{"set_font", goodies_set_font, 1, goodies_set_font__doc__}, {"set_font", goodies_set_font, 1, goodies_set_font__doc__},
{"show_message", goodies_show_message, 1, goodies_show_message__doc__}, {"show_message", goodies_show_message, 1, goodies_show_message__doc__},
{"show_alert", goodies_show_alert, 1, goodies_show_alert__doc__}, {"show_alert", goodies_show_alert, 1, goodies_show_alert__doc__},
@ -471,9 +472,10 @@ static struct PyMethodDef goodies_methods[] = {
/* Initialization function for the module (*must* be called initgoodies) */ /* Initialization function for the module (*must* be called initgoodies) */
static char goodies_module_documentation[] = static char goodies_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"goodies", /* m_name */ "goodies", /* m_name */
goodies_module_documentation, /* m_doc */ goodies_module_documentation, /* m_doc */
@ -483,7 +485,7 @@ static char goodies_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_goodies() PyInit_goodies()

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char input_create__doc__[] = static char input_create__doc__[] =
"Creates an Input object" "Creates an Input object"
; ;
static PyObject * static PyObject *
input_create(self, args) input_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -47,13 +47,13 @@ input_create(self, args)
} }
static char input_set__doc__[] = static char input_set__doc__[] =
"Sets the contents of an input object" "Sets the contents of an input object"
; ;
static PyObject * static PyObject *
input_set(self, args) input_set(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *s; char *s;
@ -66,13 +66,13 @@ input_set(self, args)
} }
static char input_set_color__doc__[] = static char input_set_color__doc__[] =
"Sets the color of the input object's text" "Sets the color of the input object's text"
; ;
static PyObject * static PyObject *
input_set_color(self, args) input_set_color(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int c1,c2; int c1,c2;
@ -85,13 +85,13 @@ input_set_color(self, args)
} }
static char input_get__doc__[] = static char input_get__doc__[] =
"Gets the input's value" "Gets the input's value"
; ;
static PyObject * static PyObject *
input_get(self, args) input_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char r[2048]; char r[2048];
@ -103,13 +103,13 @@ input_get(self, args)
} }
static char input_set_return__doc__[] = static char input_set_return__doc__[] =
"Makes the input return always or when released" "Makes the input return always or when released"
; ;
static PyObject * static PyObject *
input_set_return(self, args) input_set_return(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -122,13 +122,13 @@ input_set_return(self, args)
} }
static char input_set_scroll__doc__[] = static char input_set_scroll__doc__[] =
"Makes the input scrollable" "Makes the input scrollable"
; ;
static PyObject * static PyObject *
input_set_scroll(self, args) input_set_scroll(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -141,13 +141,13 @@ input_set_scroll(self, args)
} }
static char input_set_cursorpos__doc__[] = static char input_set_cursorpos__doc__[] =
"Sets the input's cursor position" "Sets the input's cursor position"
; ;
static PyObject * static PyObject *
input_set_cursorpos(self, args) input_set_cursorpos(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i,j; int i,j;
@ -160,13 +160,13 @@ input_set_cursorpos(self, args)
} }
static char input_set_selected__doc__[] = static char input_set_selected__doc__[] =
"Sets the input as selected" "Sets the input as selected"
; ;
static PyObject * static PyObject *
input_set_selected(self, args) input_set_selected(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -179,13 +179,13 @@ input_set_selected(self, args)
} }
static char input_set_selected_range__doc__[] = static char input_set_selected_range__doc__[] =
"Sets a range of the input object as selected" "Sets a range of the input object as selected"
; ;
static PyObject * static PyObject *
input_set_selected_range(self, args) input_set_selected_range(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i,j; int i,j;
@ -199,7 +199,8 @@ input_set_selected_range(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef input_methods[] = { static struct PyMethodDef input_methods[] =
{
{"create", input_create, 1, input_create__doc__}, {"create", input_create, 1, input_create__doc__},
{"set", input_set, 1, input_set__doc__}, {"set", input_set, 1, input_set__doc__},
{"set_color", input_set_color, 1, input_set_color__doc__}, {"set_color", input_set_color, 1, input_set_color__doc__},
@ -217,10 +218,11 @@ static struct PyMethodDef input_methods[] = {
/* Initialization function for the module (*must* be called initinput) */ /* Initialization function for the module (*must* be called initinput) */
static char input_module_documentation[] = static char input_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"input", /* m_name */ "input", /* m_name */
input_module_documentation, /* m_doc */ input_module_documentation, /* m_doc */
@ -230,7 +232,7 @@ static char input_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_input() PyInit_input()

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char menu_create__doc__[] = static char menu_create__doc__[] =
"Creates a menu" "Creates a menu"
; ;
static PyObject * static PyObject *
menu_create(self, args) menu_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -47,13 +47,13 @@ menu_create(self, args)
} }
static char menu_clear__doc__[] = static char menu_clear__doc__[] =
"Removes all the menu's options" "Removes all the menu's options"
; ;
static PyObject * static PyObject *
menu_clear(self, args) menu_clear(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -65,13 +65,13 @@ menu_clear(self, args)
} }
static char menu_set__doc__[] = static char menu_set__doc__[] =
"Sets the menu contents" "Sets the menu contents"
; ;
static PyObject * static PyObject *
menu_set(self, args) menu_set(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *s; char *s;
@ -84,13 +84,13 @@ menu_set(self, args)
} }
static char menu_addto__doc__[] = static char menu_addto__doc__[] =
"Adds an option to an existing menu" "Adds an option to an existing menu"
; ;
static PyObject * static PyObject *
menu_addto(self, args) menu_addto(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *s; char *s;
@ -103,13 +103,13 @@ menu_addto(self, args)
} }
static char menu_replace_item__doc__[] = static char menu_replace_item__doc__[] =
"Replaces an item from the menu" "Replaces an item from the menu"
; ;
static PyObject * static PyObject *
menu_replace_item(self, args) menu_replace_item(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -123,13 +123,13 @@ menu_replace_item(self, args)
} }
static char menu_delete_item__doc__[] = static char menu_delete_item__doc__[] =
"Deletes an option from a menu" "Deletes an option from a menu"
; ;
static PyObject * static PyObject *
menu_delete_item(self, args) menu_delete_item(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -142,13 +142,13 @@ menu_delete_item(self, args)
} }
static char menu_set_item_shortcut__doc__[] = static char menu_set_item_shortcut__doc__[] =
"Sets a menu item's shortcut" "Sets a menu item's shortcut"
; ;
static PyObject * static PyObject *
menu_set_item_shortcut(self, args) menu_set_item_shortcut(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -162,13 +162,13 @@ menu_set_item_shortcut(self, args)
} }
static char menu_set_item_mode__doc__[] = static char menu_set_item_mode__doc__[] =
"Sets the item mode (unselectable, etc)" "Sets the item mode (unselectable, etc)"
; ;
static PyObject * static PyObject *
menu_set_item_mode(self, args) menu_set_item_mode(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -182,13 +182,13 @@ menu_set_item_mode(self, args)
} }
static char menu_show_symbol__doc__[] = static char menu_show_symbol__doc__[] =
"Shows a simbol menu with the label" "Shows a simbol menu with the label"
; ;
static PyObject * static PyObject *
menu_show_symbol(self, args) menu_show_symbol(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -201,13 +201,13 @@ menu_show_symbol(self, args)
} }
static char menu_get__doc__[] = static char menu_get__doc__[] =
"Gets the last selected item's number" "Gets the last selected item's number"
; ;
static PyObject * static PyObject *
menu_get(self, args) menu_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -219,13 +219,13 @@ menu_get(self, args)
} }
static char menu_get_maxitems__doc__[] = static char menu_get_maxitems__doc__[] =
"returns the number of items in a menu" "returns the number of items in a menu"
; ;
static PyObject * static PyObject *
menu_get_maxitems(self, args) menu_get_maxitems(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int r; int r;
@ -237,13 +237,13 @@ menu_get_maxitems(self, args)
} }
static char menu_get_text__doc__[] = static char menu_get_text__doc__[] =
"Returns the text of the menu last selected choice" "Returns the text of the menu last selected choice"
; ;
static PyObject * static PyObject *
menu_get_text(self, args) menu_get_text(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char s[2048]; char s[2048];
@ -256,7 +256,8 @@ menu_get_text(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef menu_methods[] = { static struct PyMethodDef menu_methods[] =
{
{"create", menu_create, 1, menu_create__doc__}, {"create", menu_create, 1, menu_create__doc__},
{"clear", menu_clear, 1, menu_clear__doc__}, {"clear", menu_clear, 1, menu_clear__doc__},
{"set", menu_set, 1, menu_set__doc__}, {"set", menu_set, 1, menu_set__doc__},
@ -277,10 +278,11 @@ static struct PyMethodDef menu_methods[] = {
/* Initialization function for the module (*must* be called initmenu) */ /* Initialization function for the module (*must* be called initmenu) */
static char menu_module_documentation[] = static char menu_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"menu", /* m_name */ "menu", /* m_name */
menu_module_documentation, /* m_doc */ menu_module_documentation, /* m_doc */
@ -290,7 +292,7 @@ static char menu_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_menu() PyInit_menu()

View File

@ -5,13 +5,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char obj_set_boxtype__doc__[] = static char obj_set_boxtype__doc__[] =
"Sets the objects Boxtype" "Sets the objects Boxtype"
; ;
static PyObject * static PyObject *
obj_set_boxtype(self, args) obj_set_boxtype(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long object; long object;
int type; int type;
@ -24,13 +24,13 @@ obj_set_boxtype(self, args)
} }
static char obj_set_bw__doc__[] = static char obj_set_bw__doc__[] =
"Sets the object's Border Width" "Sets the object's Border Width"
; ;
static PyObject * static PyObject *
obj_set_bw(self, args) obj_set_bw(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long object; long object;
int bw; int bw;
@ -43,13 +43,13 @@ obj_set_bw(self, args)
} }
static char obj_set_resize__doc__[] = static char obj_set_resize__doc__[] =
"Sets the objects \"Resize policy\"" "Sets the objects \"Resize policy\""
; ;
static PyObject * static PyObject *
obj_set_resize(self, args) obj_set_resize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long object; long object;
unsigned a; unsigned a;
@ -63,13 +63,13 @@ obj_set_resize(self, args)
static char obj_set_gravity__doc__[] = static char obj_set_gravity__doc__[] =
"Sets the objects gravity" "Sets the objects gravity"
; ;
static PyObject * static PyObject *
obj_set_gravity(self, args) obj_set_gravity(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long object; long object;
unsigned a,b,c; unsigned a,b,c;
@ -83,13 +83,13 @@ obj_set_gravity(self, args)
static char obj_set_lsize__doc__[] = static char obj_set_lsize__doc__[] =
"Sets the object's label size" "Sets the object's label size"
; ;
static PyObject * static PyObject *
obj_set_lsize(self, args) obj_set_lsize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long object; long object;
int size; int size;
@ -102,13 +102,13 @@ obj_set_lsize(self, args)
} }
static char obj_set_lstyle__doc__[] = static char obj_set_lstyle__doc__[] =
"Sets the object's label style" "Sets the object's label style"
; ;
static PyObject * static PyObject *
obj_set_lstyle(self, args) obj_set_lstyle(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long object; long object;
int style; int style;
@ -121,13 +121,13 @@ obj_set_lstyle(self, args)
} }
static char obj_set_lcol__doc__[] = static char obj_set_lcol__doc__[] =
"Sets the object's label color" "Sets the object's label color"
; ;
static PyObject * static PyObject *
obj_set_lcol(self, args) obj_set_lcol(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int c; int c;
@ -139,13 +139,13 @@ obj_set_lcol(self, args)
} }
static char obj_set_dragndrop__doc__[] = static char obj_set_dragndrop__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
obj_set_dragndrop(self, args) obj_set_dragndrop(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -155,13 +155,13 @@ obj_set_dragndrop(self, args)
} }
static char obj_set_focus__doc__[] = static char obj_set_focus__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
obj_set_focus(self, args) obj_set_focus(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -171,13 +171,13 @@ obj_set_focus(self, args)
} }
static char obj_redraw__doc__[] = static char obj_redraw__doc__[] =
"Redraws the object" "Redraws the object"
; ;
static PyObject * static PyObject *
obj_redraw(self, args) obj_redraw(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -189,13 +189,13 @@ obj_redraw(self, args)
} }
static char obj_set_lalign__doc__[] = static char obj_set_lalign__doc__[] =
"Sets the label alignment" "Sets the label alignment"
; ;
static PyObject * static PyObject *
obj_set_lalign(self, args) obj_set_lalign(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int a; int a;
@ -208,13 +208,13 @@ obj_set_lalign(self, args)
static char obj_set_callback__doc__[] = static char obj_set_callback__doc__[] =
"XXXXXXNot implemented" "XXXXXXNot implemented"
; ;
static PyObject * static PyObject *
obj_set_callback(self, args) obj_set_callback(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -224,13 +224,13 @@ obj_set_callback(self, args)
} }
static char obj_show__doc__[] = static char obj_show__doc__[] =
"Shows the object" "Shows the object"
; ;
static PyObject * static PyObject *
obj_show(self, args) obj_show(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -242,13 +242,13 @@ obj_show(self, args)
} }
static char obj_hide__doc__[] = static char obj_hide__doc__[] =
"Hides the object" "Hides the object"
; ;
static PyObject * static PyObject *
obj_hide(self, args) obj_hide(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
if (!PyArg_ParseTuple(args, "l",&o)) if (!PyArg_ParseTuple(args, "l",&o))
@ -259,13 +259,13 @@ obj_hide(self, args)
} }
static char obj_free__doc__[] = static char obj_free__doc__[] =
"Releases the object's memory" "Releases the object's memory"
; ;
static PyObject * static PyObject *
obj_free(self, args) obj_free(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
if (!PyArg_ParseTuple(args, "l",&o)) if (!PyArg_ParseTuple(args, "l",&o))
@ -276,13 +276,13 @@ obj_free(self, args)
} }
static char obj_delete__doc__[] = static char obj_delete__doc__[] =
"Deletes the object from it's form" "Deletes the object from it's form"
; ;
static PyObject * static PyObject *
obj_delete(self, args) obj_delete(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
if (!PyArg_ParseTuple(args, "l",&o)) if (!PyArg_ParseTuple(args, "l",&o))
@ -293,13 +293,13 @@ obj_delete(self, args)
} }
static char obj_set_color__doc__[] = static char obj_set_color__doc__[] =
"Sets the object color" "Sets the object color"
; ;
static PyObject * static PyObject *
obj_set_color(self, args) obj_set_color(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
float a,b; float a,b;
@ -311,13 +311,13 @@ obj_set_color(self, args)
} }
static char obj_set_label__doc__[] = static char obj_set_label__doc__[] =
"Sets the label" "Sets the label"
; ;
static PyObject * static PyObject *
obj_set_label(self, args) obj_set_label(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *s; char *s;
@ -330,13 +330,13 @@ obj_set_label(self, args)
} }
static char obj_activate__doc__[] = static char obj_activate__doc__[] =
"Activates the object" "Activates the object"
; ;
static PyObject * static PyObject *
obj_activate(self, args) obj_activate(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -349,13 +349,13 @@ obj_activate(self, args)
static char obj_deactivate__doc__[] = static char obj_deactivate__doc__[] =
"Activates the object" "Activates the object"
; ;
static PyObject * static PyObject *
obj_deactivate(self, args) obj_deactivate(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
@ -367,13 +367,13 @@ obj_deactivate(self, args)
} }
static char obj_set_shortcut__doc__[] = static char obj_set_shortcut__doc__[] =
"Sets the shortcut to the object" "Sets the shortcut to the object"
; ;
static PyObject * static PyObject *
obj_set_shortcut(self, args) obj_set_shortcut(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *s; char *s;
@ -387,13 +387,13 @@ obj_set_shortcut(self, args)
} }
static char obj_set_dblbuffer__doc__[] = static char obj_set_dblbuffer__doc__[] =
"Sets the object as double buffered" "Sets the object as double buffered"
; ;
static PyObject * static PyObject *
obj_set_dblbuffer(self, args) obj_set_dblbuffer(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int c; int c;
@ -407,13 +407,13 @@ obj_set_dblbuffer(self, args)
static char obj_set_geometry__doc__[] = static char obj_set_geometry__doc__[] =
"Sets the object's geometry" "Sets the object's geometry"
; ;
static PyObject * static PyObject *
obj_set_geometry(self, args) obj_set_geometry(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int x,y,w,h; int x,y,w,h;
@ -429,13 +429,13 @@ obj_set_geometry(self, args)
static char obj_get_geometry__doc__[] = static char obj_get_geometry__doc__[] =
"Sets the object's geometry" "Sets the object's geometry"
; ;
static PyObject * static PyObject *
obj_get_geometry(self, args) obj_get_geometry(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int x,y,w,h; int x,y,w,h;
@ -452,7 +452,8 @@ obj_get_geometry(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef obj_methods[] = { static struct PyMethodDef obj_methods[] =
{
{"set_boxtype", obj_set_boxtype, 1, obj_set_boxtype__doc__}, {"set_boxtype", obj_set_boxtype, 1, obj_set_boxtype__doc__},
{"set_bw", obj_set_bw, 1, obj_set_bw__doc__}, {"set_bw", obj_set_bw, 1, obj_set_bw__doc__},
{"set_resize", obj_set_resize, 1, obj_set_resize__doc__}, {"set_resize", obj_set_resize, 1, obj_set_resize__doc__},
@ -485,9 +486,10 @@ static struct PyMethodDef obj_methods[] = {
/* Initialization function for the module (*must* be called initobjects) */ /* Initialization function for the module (*must* be called initobjects) */
static char objects_module_documentation[] = static char objects_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"objects", /* m_name */ "objects", /* m_name */
objects_module_documentation, /* m_doc */ objects_module_documentation, /* m_doc */
@ -497,7 +499,7 @@ static char objects_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_objects() PyInit_objects()

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char pmp_create__doc__[] = static char pmp_create__doc__[] =
"Creates a pixmap" "Creates a pixmap"
; ;
static PyObject * static PyObject *
pmp_create(self, args) pmp_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -47,13 +47,13 @@ pmp_create(self, args)
} }
static char pmp_set_data__doc__[] = static char pmp_set_data__doc__[] =
"Sets the pixmap's data" "Sets the pixmap's data"
; ;
static PyObject * static PyObject *
pmp_set_data(self, args) pmp_set_data(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
long b; long b;
@ -68,13 +68,13 @@ pmp_set_data(self, args)
static char pmp_set_file__doc__[] = static char pmp_set_file__doc__[] =
"Loads a file into a pixmap" "Loads a file into a pixmap"
; ;
static PyObject * static PyObject *
pmp_set_file(self, args) pmp_set_file(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
char *f; char *f;
@ -89,7 +89,8 @@ pmp_set_file(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef pmp_methods[] = { static struct PyMethodDef pmp_methods[] =
{
{"create", pmp_create, 1, pmp_create__doc__}, {"create", pmp_create, 1, pmp_create__doc__},
{"set_data", pmp_set_data, 1, pmp_set_data__doc__}, {"set_data", pmp_set_data, 1, pmp_set_data__doc__},
{"set_file", pmp_set_file, 1, pmp_set_file__doc__}, {"set_file", pmp_set_file, 1, pmp_set_file__doc__},
@ -101,10 +102,11 @@ static struct PyMethodDef pmp_methods[] = {
/* Initialization function for the module (*must* be called initpixmap) */ /* Initialization function for the module (*must* be called initpixmap) */
static char pixmaps_module_documentation[] = static char pixmaps_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"pixmaps", /* m_name */ "pixmaps", /* m_name */
pixmaps_module_documentation, /* m_doc */ pixmaps_module_documentation, /* m_doc */
@ -114,7 +116,7 @@ static char pixmaps_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_pixmaps() PyInit_pixmaps()

View File

@ -29,13 +29,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char pup_new__doc__[] = static char pup_new__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_new(self, args) pup_new(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -45,13 +45,13 @@ pup_new(self, args)
} }
static char pup_def__doc__[] = static char pup_def__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_def(self, args) pup_def(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -61,13 +61,13 @@ pup_def(self, args)
} }
static char pup_addto__doc__[] = static char pup_addto__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_addto(self, args) pup_addto(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -77,13 +77,13 @@ pup_addto(self, args)
} }
static char pup_set__doc__[] = static char pup_set__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set(self, args) pup_set(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -93,13 +93,13 @@ pup_set(self, args)
} }
static char pup_free__doc__[] = static char pup_free__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_free(self, args) pup_free(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -109,13 +109,13 @@ pup_free(self, args)
} }
static char pup_do__doc__[] = static char pup_do__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_do(self, args) pup_do(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -125,13 +125,13 @@ pup_do(self, args)
} }
static char pup_set_shortcut__doc__[] = static char pup_set_shortcut__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_shortcut(self, args) pup_set_shortcut(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -141,13 +141,13 @@ pup_set_shortcut(self, args)
} }
static char pup_set_position__doc__[] = static char pup_set_position__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_position(self, args) pup_set_position(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -157,13 +157,13 @@ pup_set_position(self, args)
} }
static char pup_set_selection__doc__[] = static char pup_set_selection__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_selection(self, args) pup_set_selection(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -173,13 +173,13 @@ pup_set_selection(self, args)
} }
static char pup_set_fontsize__doc__[] = static char pup_set_fontsize__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_fontsize(self, args) pup_set_fontsize(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -189,13 +189,13 @@ pup_set_fontsize(self, args)
} }
static char pup_set_fontstyle__doc__[] = static char pup_set_fontstyle__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_fontstyle(self, args) pup_set_fontstyle(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -205,13 +205,13 @@ pup_set_fontstyle(self, args)
} }
static char pup_set_shadow__doc__[] = static char pup_set_shadow__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_shadow(self, args) pup_set_shadow(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -221,13 +221,13 @@ pup_set_shadow(self, args)
} }
static char pup_set_softedge__doc__[] = static char pup_set_softedge__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_softedge(self, args) pup_set_softedge(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -237,13 +237,13 @@ pup_set_softedge(self, args)
} }
static char pup_set_color__doc__[] = static char pup_set_color__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_color(self, args) pup_set_color(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -253,13 +253,13 @@ pup_set_color(self, args)
} }
static char pup_set_title__doc__[] = static char pup_set_title__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_title(self, args) pup_set_title(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -269,13 +269,13 @@ pup_set_title(self, args)
} }
static char pup_set_itemcb__doc__[] = static char pup_set_itemcb__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_itemcb(self, args) pup_set_itemcb(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -285,13 +285,13 @@ pup_set_itemcb(self, args)
} }
static char pup_set_menucb__doc__[] = static char pup_set_menucb__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_menucb(self, args) pup_set_menucb(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -301,13 +301,13 @@ pup_set_menucb(self, args)
} }
static char pup_set_submenu__doc__[] = static char pup_set_submenu__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
pup_set_submenu(self, args) pup_set_submenu(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -318,7 +318,8 @@ pup_set_submenu(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef pup_methods[] = { static struct PyMethodDef pup_methods[] =
{
{"new", pup_new, 1, pup_new__doc__}, {"new", pup_new, 1, pup_new__doc__},
{"def", pup_def, 1, pup_def__doc__}, {"def", pup_def, 1, pup_def__doc__},
{"addto", pup_addto, 1, pup_addto__doc__}, {"addto", pup_addto, 1, pup_addto__doc__},
@ -345,9 +346,10 @@ static struct PyMethodDef pup_methods[] = {
/* Initialization function for the module (*must* be called initpopups) */ /* Initialization function for the module (*must* be called initpopups) */
static char popups_module_documentation[] = static char popups_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"popups", /* m_name */ "popups", /* m_name */
popups_module_documentation, /* m_doc */ popups_module_documentation, /* m_doc */
@ -357,7 +359,7 @@ static char popups_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_popups() PyInit_popups()

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char posit_create__doc__[] = static char posit_create__doc__[] =
"Creates a positioner" "Creates a positioner"
; ;
static PyObject * static PyObject *
posit_create(self, args) posit_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -47,13 +47,13 @@ posit_create(self, args)
} }
static char posit_set_xvalue__doc__[] = static char posit_set_xvalue__doc__[] =
"Sets the x-value of the positioner" "Sets the x-value of the positioner"
; ;
static PyObject * static PyObject *
posit_set_xvalue(self, args) posit_set_xvalue(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -66,13 +66,13 @@ posit_set_xvalue(self, args)
} }
static char posit_get_xvalue__doc__[] = static char posit_get_xvalue__doc__[] =
"Gets the x-value of the positioner" "Gets the x-value of the positioner"
; ;
static PyObject * static PyObject *
posit_get_xvalue(self, args) posit_get_xvalue(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double r; double r;
@ -84,13 +84,13 @@ posit_get_xvalue(self, args)
} }
static char posit_set_xbounds__doc__[] = static char posit_set_xbounds__doc__[] =
"Sets the positioner's x min/max" "Sets the positioner's x min/max"
; ;
static PyObject * static PyObject *
posit_set_xbounds(self, args) posit_set_xbounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -103,13 +103,13 @@ posit_set_xbounds(self, args)
} }
static char posit_get_xbounds__doc__[] = static char posit_get_xbounds__doc__[] =
"Gets the positioner's x min/max" "Gets the positioner's x min/max"
; ;
static PyObject * static PyObject *
posit_get_xbounds(self, args) posit_get_xbounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -122,13 +122,13 @@ posit_get_xbounds(self, args)
static char posit_set_yvalue__doc__[] = static char posit_set_yvalue__doc__[] =
"Sets the y-value of the positioner" "Sets the y-value of the positioner"
; ;
static PyObject * static PyObject *
posit_set_yvalue(self, args) posit_set_yvalue(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -141,13 +141,13 @@ posit_set_yvalue(self, args)
} }
static char posit_get_yvalue__doc__[] = static char posit_get_yvalue__doc__[] =
"Gets the y-value of the positioner" "Gets the y-value of the positioner"
; ;
static PyObject * static PyObject *
posit_get_yvalue(self, args) posit_get_yvalue(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double r; double r;
@ -159,13 +159,13 @@ posit_get_yvalue(self, args)
} }
static char posit_set_ybounds__doc__[] = static char posit_set_ybounds__doc__[] =
"Sets the positioner's y min/max" "Sets the positioner's y min/max"
; ;
static PyObject * static PyObject *
posit_set_ybounds(self, args) posit_set_ybounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -178,13 +178,13 @@ posit_set_ybounds(self, args)
} }
static char posit_get_ybounds__doc__[] = static char posit_get_ybounds__doc__[] =
"Gets the positioner's y min/max" "Gets the positioner's y min/max"
; ;
static PyObject * static PyObject *
posit_get_ybounds(self, args) posit_get_ybounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -197,13 +197,13 @@ posit_get_ybounds(self, args)
static char posit_set_xstep__doc__[] = static char posit_set_xstep__doc__[] =
"Sets the positioner x-step" "Sets the positioner x-step"
; ;
static PyObject * static PyObject *
posit_set_xstep(self, args) posit_set_xstep(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double s; double s;
@ -217,13 +217,13 @@ posit_set_xstep(self, args)
static char posit_set_ystep__doc__[] = static char posit_set_ystep__doc__[] =
"Sets the positioner y-step" "Sets the positioner y-step"
; ;
static PyObject * static PyObject *
posit_set_ystep(self, args) posit_set_ystep(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double s; double s;
@ -236,13 +236,13 @@ posit_set_ystep(self, args)
} }
static char posit_set_return__doc__[] = static char posit_set_return__doc__[] =
"Makes the positioner return always or when released" "Makes the positioner return always or when released"
; ;
static PyObject * static PyObject *
posit_set_return(self, args) posit_set_return(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -256,7 +256,8 @@ posit_set_return(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef posit_methods[] = { static struct PyMethodDef posit_methods[] =
{
{"create", posit_create, 1, posit_create__doc__}, {"create", posit_create, 1, posit_create__doc__},
{"set_xvalue", posit_set_xvalue, 1, posit_set_xvalue__doc__}, {"set_xvalue", posit_set_xvalue, 1, posit_set_xvalue__doc__},
{"get_xvalue", posit_get_xvalue, 1, posit_get_xvalue__doc__}, {"get_xvalue", posit_get_xvalue, 1, posit_get_xvalue__doc__},
@ -277,9 +278,10 @@ static struct PyMethodDef posit_methods[] = {
/* Initialization function for the module (*must* be called initpositioner) */ /* Initialization function for the module (*must* be called initpositioner) */
static char positioner_module_documentation[] = static char positioner_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"positioner", /* m_name */ "positioner", /* m_name */
positioner_module_documentation, /* m_doc */ positioner_module_documentation, /* m_doc */
@ -289,7 +291,7 @@ static char positioner_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_positioner() PyInit_positioner()

View File

@ -29,13 +29,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char slider_create__doc__[] = static char slider_create__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
slider_create(self, args) slider_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -48,13 +48,13 @@ slider_create(self, args)
} }
static char slider_create_val__doc__[] = static char slider_create_val__doc__[] =
"Creates a val_slider" "Creates a val_slider"
; ;
static PyObject * static PyObject *
slider_create_val(self, args) slider_create_val(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
int t,x,y,w,h; int t,x,y,w,h;
char *l; char *l;
@ -67,14 +67,14 @@ slider_create_val(self, args)
} }
static char slider_set_value__doc__[] = static char slider_set_value__doc__[] =
"Sets the slider's value" "Sets the slider's value"
; ;
static PyObject * static PyObject *
slider_set_value(self, args) slider_set_value(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -87,13 +87,13 @@ slider_set_value(self, args)
} }
static char slider_get_value__doc__[] = static char slider_get_value__doc__[] =
"Gets the slider value" "Gets the slider value"
; ;
static PyObject * static PyObject *
slider_get_value(self, args) slider_get_value(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -105,13 +105,13 @@ slider_get_value(self, args)
} }
static char slider_set_bounds__doc__[] = static char slider_set_bounds__doc__[] =
"Sets the slider's min/max" "Sets the slider's min/max"
; ;
static PyObject * static PyObject *
slider_set_bounds(self, args) slider_set_bounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -124,13 +124,13 @@ slider_set_bounds(self, args)
} }
static char slider_get_bounds__doc__[] = static char slider_get_bounds__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
slider_get_bounds(self, args) slider_get_bounds(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double min,max; double min,max;
@ -142,13 +142,13 @@ slider_get_bounds(self, args)
} }
static char slider_set_return__doc__[] = static char slider_set_return__doc__[] =
"Makes the slider return always or when released" "Makes the slider return always or when released"
; ;
static PyObject * static PyObject *
slider_set_return(self, args) slider_set_return(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -161,13 +161,13 @@ slider_set_return(self, args)
} }
static char slider_set_step__doc__[] = static char slider_set_step__doc__[] =
"Sets the slider's step" "Sets the slider's step"
; ;
static PyObject * static PyObject *
slider_set_step(self, args) slider_set_step(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double s; double s;
@ -180,13 +180,13 @@ slider_set_step(self, args)
} }
static char slider_set_size__doc__[] = static char slider_set_size__doc__[] =
"Sets the slider's thingy size" "Sets the slider's thingy size"
; ;
static PyObject * static PyObject *
slider_set_size(self, args) slider_set_size(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double s; double s;
@ -199,13 +199,13 @@ slider_set_size(self, args)
} }
static char slider_set_precision__doc__[] = static char slider_set_precision__doc__[] =
"Sets the valslider's precision" "Sets the valslider's precision"
; ;
static PyObject * static PyObject *
slider_set_precision(self, args) slider_set_precision(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -219,7 +219,8 @@ slider_set_precision(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef slider_methods[] = { static struct PyMethodDef slider_methods[] =
{
{"create", slider_create, 1, slider_create__doc__}, {"create", slider_create, 1, slider_create__doc__},
{"create_val", slider_create_val, 1, slider_create_val__doc__}, {"create_val", slider_create_val, 1, slider_create_val__doc__},
{"set_value", slider_set_value, 1, slider_set_value__doc__}, {"set_value", slider_set_value, 1, slider_set_value__doc__},
@ -238,9 +239,10 @@ static struct PyMethodDef slider_methods[] = {
/* Initialization function for the module (*must* be called initslider) */ /* Initialization function for the module (*must* be called initslider) */
static char slider_module_documentation[] = static char slider_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"slider", /* m_name */ "slider", /* m_name */
slider_module_documentation, /* m_doc */ slider_module_documentation, /* m_doc */
@ -250,7 +252,7 @@ static char slider_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_slider() PyInit_slider()

View File

@ -29,13 +29,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char text_create__doc__[] = static char text_create__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
text_create(self, args) text_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) if (!PyArg_ParseTuple(args, ""))
@ -46,7 +46,8 @@ text_create(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef text_methods[] = { static struct PyMethodDef text_methods[] =
{
{"create", text_create, 1, text_create__doc__}, {"create", text_create, 1, text_create__doc__},
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
@ -56,10 +57,11 @@ static struct PyMethodDef text_methods[] = {
/* Initialization function for the module (*must* be called inittext) */ /* Initialization function for the module (*must* be called inittext) */
static char text_module_documentation[] = static char text_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"text", /* m_name */ "text", /* m_name */
text_module_documentation, /* m_doc */ text_module_documentation, /* m_doc */
@ -69,7 +71,7 @@ static char text_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_text() PyInit_text()

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char timer_create__doc__[] = static char timer_create__doc__[] =
"Creates a timer" "Creates a timer"
; ;
static PyObject * static PyObject *
fl_timer_create(self, args) fl_timer_create(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int t,x,y,w,h; int t,x,y,w,h;
@ -47,13 +47,13 @@ fl_timer_create(self, args)
} }
static char timer_set__doc__[] = static char timer_set__doc__[] =
"Set the time remaining in a timer object" "Set the time remaining in a timer object"
; ;
static PyObject * static PyObject *
timer_set(self, args) timer_set(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -66,13 +66,13 @@ timer_set(self, args)
} }
static char timer_get__doc__[] = static char timer_get__doc__[] =
"Get the time remaining in a timer object" "Get the time remaining in a timer object"
; ;
static PyObject * static PyObject *
timer_get(self, args) timer_get(self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double v; double v;
@ -85,7 +85,8 @@ timer_get(self, args)
/* List of methods defined in the module */ /* List of methods defined in the module */
static struct PyMethodDef timer_methods[] = { static struct PyMethodDef timer_methods[] =
{
{"create", fl_timer_create, 1, timer_create__doc__}, {"create", fl_timer_create, 1, timer_create__doc__},
{"set", timer_set, 1, timer_set__doc__}, {"set", timer_set, 1, timer_set__doc__},
{"get", timer_get, 1, timer_get__doc__}, {"get", timer_get, 1, timer_get__doc__},
@ -97,10 +98,11 @@ static struct PyMethodDef timer_methods[] = {
/* Initialization function for the module (*must* be called inittimer) */ /* Initialization function for the module (*must* be called inittimer) */
static char timer_module_documentation[] = static char timer_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"timer", /* m_name */ "timer", /* m_name */
timer_module_documentation, /* m_doc */ timer_module_documentation, /* m_doc */
@ -110,7 +112,7 @@ static char timer_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_timer() PyInit_timer()

View File

@ -25,8 +25,8 @@ Returns:
static PyObject * static PyObject *
pyxforms_init(self,args) pyxforms_init(self,args)
PyObject *self; PyObject *self;
PyObject *args; PyObject *args;
{ {
int sts; int sts;
char *appname; char *appname;
@ -50,25 +50,27 @@ Returns: NULL on error
static PyObject * static PyObject *
pyxforms_do_forms(self,args) pyxforms_do_forms(self,args)
PyObject *self; PyObject *self;
PyObject *args; PyObject *args;
{ {
FL_OBJECT *obj; FL_OBJECT *obj;
obj=fl_do_only_forms (); /* XXXXX not do_forms, until EVENTS get done */ obj=fl_do_only_forms (); /* XXXXX not do_forms, until EVENTS get done */
return Py_BuildValue("l",(long)obj); return Py_BuildValue("l",(long)obj);
} }
static PyMethodDef xformsMethods [] ={ static PyMethodDef xformsMethods [] =
{
/* XForms specifics */ /* XForms specifics */
{"init",pyxforms_init,1}, {"init",pyxforms_init,1},
{"do_forms",pyxforms_do_forms,1}, {"do_forms",pyxforms_do_forms,1},
/* FENCE */ /* FENCE */
{NULL,NULL} {NULL,NULL}
}; };
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"xforms", /* m_name */ "xforms", /* m_name */
"", /* m_doc */ "", /* m_doc */
@ -78,11 +80,11 @@ static PyMethodDef xformsMethods [] ={
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_xforms() PyInit_xforms()
{ {
PyModule_Create(&moduledef); PyModule_Create(&moduledef);
} }

View File

@ -28,13 +28,13 @@ static PyObject *ErrorObject;
/* ----------------------------------------------------- */ /* ----------------------------------------------------- */
static char xyplot_set_return__doc__[] = static char xyplot_set_return__doc__[] =
"Makes the XyPlot return always or when released" "Makes the XyPlot return always or when released"
; ;
static PyObject * static PyObject *
xyplot_set_return (self, args) xyplot_set_return (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i; int i;
@ -47,13 +47,13 @@ xyplot_set_return (self, args)
} }
static char xyplot_set_xtics__doc__[] = static char xyplot_set_xtics__doc__[] =
"Changes the number of xtics (major and minor) in a xyplot" "Changes the number of xtics (major and minor) in a xyplot"
; ;
static PyObject * static PyObject *
xyplot_set_xtics (self, args) xyplot_set_xtics (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i, j; int i, j;
@ -66,13 +66,13 @@ xyplot_set_xtics (self, args)
} }
static char xyplot_set_ytics__doc__[] = static char xyplot_set_ytics__doc__[] =
"Changes the number of ytics (major and minor) in a xyplot" "Changes the number of ytics (major and minor) in a xyplot"
; ;
static PyObject * static PyObject *
xyplot_set_ytics (self, args) xyplot_set_ytics (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
int i, j; int i, j;
@ -85,13 +85,13 @@ xyplot_set_ytics (self, args)
} }
static char xyplot_set_xbounds__doc__[] = static char xyplot_set_xbounds__doc__[] =
"Sets the xmin and xmax in a xyplot" "Sets the xmin and xmax in a xyplot"
; ;
static PyObject * static PyObject *
xyplot_set_xbounds (self, args) xyplot_set_xbounds (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double u, v; double u, v;
@ -104,13 +104,13 @@ xyplot_set_xbounds (self, args)
} }
static char xyplot_set_ybounds__doc__[] = static char xyplot_set_ybounds__doc__[] =
"Sets the xmin and xmax in a xyplot" "Sets the xmin and xmax in a xyplot"
; ;
static PyObject * static PyObject *
xyplot_set_ybounds (self, args) xyplot_set_ybounds (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
double u, v; double u, v;
@ -123,13 +123,13 @@ xyplot_set_ybounds (self, args)
} }
static char xyplot_get__doc__[] = static char xyplot_get__doc__[] =
"Gets the current value of the point that changed" "Gets the current value of the point that changed"
; ;
static PyObject * static PyObject *
xyplot_get (self, args) xyplot_get (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
long o; long o;
float x, y; float x, y;
@ -143,13 +143,13 @@ xyplot_get (self, args)
} }
static char xyplot_get_data__doc__[] = static char xyplot_get_data__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_get_data (self, args) xyplot_get_data (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -159,13 +159,13 @@ xyplot_get_data (self, args)
} }
static char xyplot_create__doc__[] = static char xyplot_create__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_create (self, args) xyplot_create (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -175,13 +175,13 @@ xyplot_create (self, args)
} }
static char xyplot_set_data__doc__[] = static char xyplot_set_data__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_data (self, args) xyplot_set_data (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -191,13 +191,13 @@ xyplot_set_data (self, args)
} }
static char xyplot_set_file__doc__[] = static char xyplot_set_file__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_file (self, args) xyplot_set_file (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -207,13 +207,13 @@ xyplot_set_file (self, args)
} }
static char xyplot_add_text__doc__[] = static char xyplot_add_text__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_add_text (self, args) xyplot_add_text (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -223,13 +223,13 @@ xyplot_add_text (self, args)
} }
static char xyplot_delete_text__doc__[] = static char xyplot_delete_text__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_delete_text (self, args) xyplot_delete_text (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -239,13 +239,13 @@ xyplot_delete_text (self, args)
} }
static char xyplot_add_overlay__doc__[] = static char xyplot_add_overlay__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_add_overlay (self, args) xyplot_add_overlay (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -255,13 +255,13 @@ xyplot_add_overlay (self, args)
} }
static char xyplot_set_overlay_type__doc__[] = static char xyplot_set_overlay_type__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_overlay_type (self, args) xyplot_set_overlay_type (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -271,13 +271,13 @@ xyplot_set_overlay_type (self, args)
} }
static char xyplot_delete_overlay__doc__[] = static char xyplot_delete_overlay__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_delete_overlay (self, args) xyplot_delete_overlay (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -287,13 +287,13 @@ xyplot_delete_overlay (self, args)
} }
static char xyplot_set_interpolate__doc__[] = static char xyplot_set_interpolate__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_interpolate (self, args) xyplot_set_interpolate (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -303,13 +303,13 @@ xyplot_set_interpolate (self, args)
} }
static char xyplot_set_fontsize__doc__[] = static char xyplot_set_fontsize__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_fontsize (self, args) xyplot_set_fontsize (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -319,13 +319,13 @@ xyplot_set_fontsize (self, args)
} }
static char xyplot_set_fontstyle__doc__[] = static char xyplot_set_fontstyle__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_fontstyle (self, args) xyplot_set_fontstyle (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -335,13 +335,13 @@ xyplot_set_fontstyle (self, args)
} }
static char xyplot_set_inspect__doc__[] = static char xyplot_set_inspect__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_inspect (self, args) xyplot_set_inspect (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -351,13 +351,13 @@ xyplot_set_inspect (self, args)
} }
static char xyplot_set_symbolsize__doc__[] = static char xyplot_set_symbolsize__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_set_symbolsize (self, args) xyplot_set_symbolsize (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -367,13 +367,13 @@ xyplot_set_symbolsize (self, args)
} }
static char xyplot_replace_point__doc__[] = static char xyplot_replace_point__doc__[] =
"" ""
; ;
static PyObject * static PyObject *
xyplot_replace_point (self, args) xyplot_replace_point (self, args)
PyObject *self; /* Not used */ PyObject *self; /* Not used */
PyObject *args; PyObject *args;
{ {
if (!PyArg_ParseTuple (args, "")) if (!PyArg_ParseTuple (args, ""))
@ -415,9 +415,10 @@ static struct PyMethodDef xyplot_methods[] =
/* Initialization function for the module (*must* be called initxyplot) */ /* Initialization function for the module (*must* be called initxyplot) */
static char xyplot_module_documentation[] = static char xyplot_module_documentation[] =
"" ""
; ;
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"xyplot", /* m_name */ "xyplot", /* m_name */
xyplot_module_documentation, /* m_doc */ xyplot_module_documentation, /* m_doc */
@ -427,7 +428,7 @@ static char xyplot_module_documentation[] =
NULL, /* m_traverse */ NULL, /* m_traverse */
NULL, /* m_clear */ NULL, /* m_clear */
NULL, /* m_free */ NULL, /* m_free */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit_xyplot () PyInit_xyplot ()