Codebase list mirage / f6904ca
Update xmouse for Python 3 Thomas Ross 3 years ago
2 changed file(s) with 15 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4949 print("imgfuncs.so module not found, rotating/flipping images will be disabled.")
5050
5151 try:
52 import xmouse
52 import mirage.xmouse as xmouse
5353
5454 HAS_XMOUSE = True
5555 except:
3434 return ret;
3535 }
3636
37 PyMethodDef methods[] =
37 static PyMethodDef methods[] =
3838 {
39 {"geometry", xmouse_geometry, METH_VARARGS},
39 {"geometry", xmouse_geometry, METH_VARARGS,
40 "Get the geometry of the window under the mouse cursor."},
4041 };
4142
42 void initxmouse(void)
43 static PyModuleDef xmouse_module = {
44 PyModuleDef_HEAD_INIT,
45 "xmouse",
46 "Mirage X Mouse functions",
47 -1,
48 methods
49 };
50
51 PyMODINIT_FUNC
52 PyInit_xmouse(void)
4353 {
44 Py_InitModule("xmouse", methods);
54 PyModule_Create(&xmouse_module);
4555 }