00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef METER_PYTHON_H
00012 #define METER_PYTHON_H
00013
00014
00015 #define PY_PARSE(a, b, c, d) (PyArg_ParseTuple(a, (char*)b, c, d))
00016 #define PY_BUILD(a, b) (Py_BuildValue((char*)a, b))
00017
00018 bool checkKaramba(long widget);
00019 bool checkMeter(long widget, long meter, const char* type);
00020 bool checkKarambaAndMeter(long widget, long meter, const char* type);
00021
00022 TQString PyString2TQString(PyObject* text);
00023 PyObject* TQString2PyString(TQString string);
00024
00025 PyObject* py_getThemeMeter(PyObject *self, PyObject *args, TQString type);
00026 PyObject* py_getSize(PyObject *self, PyObject *args, TQString type);
00027 PyObject* py_resize(PyObject *self, PyObject *args, TQString type);
00028 PyObject* py_getPos(PyObject *self, PyObject *args, TQString type);
00029 PyObject* py_move(PyObject *self, PyObject *args, TQString type);
00030 PyObject* py_hide(PyObject *self, PyObject *args, TQString type);
00031 PyObject* py_show(PyObject *self, PyObject *args, TQString type);
00032 PyObject* py_getValue(PyObject *self, PyObject *args, TQString type);
00033 PyObject* py_setValue(PyObject *self, PyObject *args, TQString type);
00034 PyObject* py_getStringValue(PyObject *self, PyObject *args, TQString type);
00035 PyObject* py_setStringValue(PyObject *self, PyObject *args, TQString type);
00036 PyObject* py_getMinMax(PyObject *self, PyObject *args, TQString type);
00037 PyObject* py_setMinMax(PyObject *self, PyObject *args, TQString type);
00038 PyObject* py_getSensor(PyObject *self, PyObject *args, TQString type);
00039 PyObject* py_setSensor(PyObject *self, PyObject *args, TQString type);
00040 PyObject* py_getColor(PyObject *self, PyObject *args, TQString type);
00041 PyObject* py_setColor(PyObject *self, PyObject *args, TQString type);
00042
00043 #endif // METER_PYTHON_H
00044