First pass at wxPython for Mac (darwin only so far). It
builds but doesn't run yet. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
35bf863b1c
commit
e6056257ab
@ -7,6 +7,8 @@ function getpyver {
|
||||
PYVER=2.0
|
||||
elif [ "$1" = "21" ]; then
|
||||
PYVER=2.1
|
||||
elif [ "$1" = "22" ]; then
|
||||
PYVER=2.2
|
||||
else
|
||||
echo You must specify Python version as first parameter.
|
||||
exit
|
||||
@ -18,7 +20,7 @@ shift
|
||||
|
||||
python$PYVER -c "import sys;print '\n', sys.version, '\n'"
|
||||
|
||||
WXPYVER=`python$PYVER -c "import setup;print setup.VERSION"`
|
||||
##WXPYVER=`python$PYVER -c "import setup;print setup.VERSION"`
|
||||
SETUP="python$PYVER -u setup.py"
|
||||
FLAGS="USE_SWIG=1 IN_CVS_TREE=1"
|
||||
OTHERFLAGS=""
|
||||
|
771
wxPython/contrib/glcanvas/mac/glcanvas.cpp
Normal file
771
wxPython/contrib/glcanvas/mac/glcanvas.cpp
Normal file
@ -0,0 +1,771 @@
|
||||
/*
|
||||
* FILE : contrib/glcanvas/mac/glcanvas.cpp
|
||||
*
|
||||
* This file was automatically generated by :
|
||||
* Simplified Wrapper and Interface Generator (SWIG)
|
||||
* Version 1.1 (Build 883)
|
||||
*
|
||||
* Portions Copyright (c) 1995-1998
|
||||
* The University of Utah and The Regents of the University of California.
|
||||
* Permission is granted to distribute this file in any manner provided
|
||||
* this notice remains intact.
|
||||
*
|
||||
* Do not make changes to this file--changes will be lost!
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#define SWIGCODE
|
||||
/* Implementation : PYTHON */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
/* Definitions for Windows/Unix exporting */
|
||||
#if defined(__WIN32__)
|
||||
# if defined(_MSC_VER)
|
||||
# define SWIGEXPORT(a) __declspec(dllexport) a
|
||||
# else
|
||||
# if defined(__BORLANDC__)
|
||||
# define SWIGEXPORT(a) a _export
|
||||
# else
|
||||
# define SWIGEXPORT(a) a
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define SWIGEXPORT(a) a
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void SWIG_MakePtr(char *, void *, char *);
|
||||
extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
|
||||
extern char *SWIG_GetPtr(char *, void **, char *);
|
||||
extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
|
||||
extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
||||
extern PyObject *SWIG_newvarlink(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#define SWIG_init initglcanvasc
|
||||
|
||||
#define SWIG_name "glcanvasc"
|
||||
|
||||
#include "export.h"
|
||||
#ifdef __WXMSW__
|
||||
#include "myglcanvas.h"
|
||||
#else
|
||||
#include <wx/glcanvas.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
static char* wxStringErrorMsg = "String or Unicode type required";
|
||||
#else
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static void *SwigwxGLContextTowxObject(void *ptr) {
|
||||
wxGLContext *src;
|
||||
wxObject *dest;
|
||||
src = (wxGLContext *) ptr;
|
||||
dest = (wxObject *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
#define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2))
|
||||
static PyObject *_wrap_new_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLContext * _result;
|
||||
bool _arg0;
|
||||
wxGLCanvas * _arg1;
|
||||
wxPalette * _arg2 = (wxPalette *) &wxNullPalette;
|
||||
int tempbool0;
|
||||
PyObject * _argo1 = 0;
|
||||
PyObject * _argo2 = 0;
|
||||
char *_kwnames[] = { "isRGB","win","palette", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iO|O:new_wxGLContext",_kwnames,&tempbool0,&_argo1,&_argo2))
|
||||
return NULL;
|
||||
_arg0 = (bool ) tempbool0;
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLCanvas_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo2) {
|
||||
if (_argo2 == Py_None) { _arg2 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPalette_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxGLContext *)new_wxGLContext(_arg0,_arg1,*_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define delete_wxGLContext(_swigobj) (delete _swigobj)
|
||||
static PyObject *_wrap_delete_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLContext * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGLContext",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
delete_wxGLContext(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
|
||||
static PyObject *_wrap_wxGLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLContext * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetCurrent",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxGLContext_SetCurrent(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
|
||||
static PyObject *_wrap_wxGLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLContext * _arg0;
|
||||
char * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","colour", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLContext_SetColour",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxGLContext_SetColour(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
|
||||
static PyObject *_wrap_wxGLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLContext * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SwapBuffers",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxGLContext_SwapBuffers(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
|
||||
static PyObject *_wrap_wxGLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _result;
|
||||
wxGLContext * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetWindow",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxWindow *)wxGLContext_GetWindow(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{ _resultobj = wxPyMake_wxObject(_result); }
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxGLCanvasTowxScrolledWindow(void *ptr) {
|
||||
wxGLCanvas *src;
|
||||
wxScrolledWindow *dest;
|
||||
src = (wxGLCanvas *) ptr;
|
||||
dest = (wxScrolledWindow *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxGLCanvasTowxPanel(void *ptr) {
|
||||
wxGLCanvas *src;
|
||||
wxPanel *dest;
|
||||
src = (wxGLCanvas *) ptr;
|
||||
dest = (wxPanel *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxGLCanvasTowxWindow(void *ptr) {
|
||||
wxGLCanvas *src;
|
||||
wxWindow *dest;
|
||||
src = (wxGLCanvas *) ptr;
|
||||
dest = (wxWindow *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxGLCanvasTowxEvtHandler(void *ptr) {
|
||||
wxGLCanvas *src;
|
||||
wxEvtHandler *dest;
|
||||
src = (wxGLCanvas *) ptr;
|
||||
dest = (wxEvtHandler *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxGLCanvasTowxObject(void *ptr) {
|
||||
wxGLCanvas *src;
|
||||
wxObject *dest;
|
||||
src = (wxGLCanvas *) ptr;
|
||||
dest = (wxObject *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
#define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
|
||||
static PyObject *_wrap_new_wxGLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLCanvas * _result;
|
||||
wxWindow * _arg0;
|
||||
wxWindowID _arg1 = (wxWindowID ) -1;
|
||||
wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
|
||||
wxSize * _arg3 = (wxSize *) &wxDefaultSize;
|
||||
long _arg4 = (long ) 0;
|
||||
char * _arg5 = (char *) "GLCanvas";
|
||||
int * _arg6 = (int *) NULL;
|
||||
wxPalette * _arg7 = (wxPalette *) &wxNullPalette;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj2 = 0;
|
||||
wxSize temp0;
|
||||
PyObject * _obj3 = 0;
|
||||
int * temp1;
|
||||
PyObject * _obj6 = 0;
|
||||
PyObject * _argo7 = 0;
|
||||
char *_kwnames[] = { "parent","id","pos","size","style","name","attribList","palette", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlsOO:new_wxGLCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5,&_obj6,&_argo7))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_obj2)
|
||||
{
|
||||
_arg2 = &temp;
|
||||
if (! wxPoint_helper(_obj2, &_arg2))
|
||||
return NULL;
|
||||
}
|
||||
if (_obj3)
|
||||
{
|
||||
_arg3 = &temp0;
|
||||
if (! wxSize_helper(_obj3, &_arg3))
|
||||
return NULL;
|
||||
}
|
||||
if (_obj6)
|
||||
{
|
||||
int i;
|
||||
if (PySequence_Check(_obj6)) {
|
||||
int size = PyObject_Length(_obj6);
|
||||
temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
|
||||
for (i = 0; i < size; i++) {
|
||||
temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj6, i));
|
||||
}
|
||||
temp1[size] = 0;
|
||||
_arg6 = temp1;
|
||||
}
|
||||
}
|
||||
if (_argo7) {
|
||||
if (_argo7 == Py_None) { _arg7 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxPalette_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxGLCanvas *)new_wxGLCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
{
|
||||
delete [] _arg6;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
|
||||
static PyObject *_wrap_new_wxGLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLCanvas * _result;
|
||||
wxWindow * _arg0;
|
||||
wxGLContext * _arg1 = (wxGLContext *) NULL;
|
||||
wxWindowID _arg2 = (wxWindowID ) -1;
|
||||
wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
|
||||
wxSize * _arg4 = (wxSize *) &wxDefaultSize;
|
||||
long _arg5 = (long ) 0;
|
||||
char * _arg6 = (char *) "GLCanvas";
|
||||
int * _arg7 = (int *) NULL;
|
||||
wxPalette * _arg8 = (wxPalette *) &wxNullPalette;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj3 = 0;
|
||||
wxSize temp0;
|
||||
PyObject * _obj4 = 0;
|
||||
int * temp1;
|
||||
PyObject * _obj7 = 0;
|
||||
PyObject * _argo8 = 0;
|
||||
char *_kwnames[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOOlsOO:new_wxGLCanvasWithContext",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_obj7,&_argo8))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLContext_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_obj3)
|
||||
{
|
||||
_arg3 = &temp;
|
||||
if (! wxPoint_helper(_obj3, &_arg3))
|
||||
return NULL;
|
||||
}
|
||||
if (_obj4)
|
||||
{
|
||||
_arg4 = &temp0;
|
||||
if (! wxSize_helper(_obj4, &_arg4))
|
||||
return NULL;
|
||||
}
|
||||
if (_obj7)
|
||||
{
|
||||
int i;
|
||||
if (PySequence_Check(_obj7)) {
|
||||
int size = PyObject_Length(_obj7);
|
||||
temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
|
||||
for (i = 0; i < size; i++) {
|
||||
temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj7, i));
|
||||
}
|
||||
temp1[size] = 0;
|
||||
_arg7 = temp1;
|
||||
}
|
||||
}
|
||||
if (_argo8) {
|
||||
if (_argo8 == Py_None) { _arg8 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxPalette_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxGLCanvas *)new_wxGLCanvasWithContext(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
{
|
||||
delete [] _arg7;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
|
||||
static PyObject *_wrap_wxGLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLCanvas * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SetCurrent",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxGLCanvas_SetCurrent(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
|
||||
static PyObject *_wrap_wxGLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLCanvas * _arg0;
|
||||
char * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","colour", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLCanvas_SetColour",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxGLCanvas_SetColour(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
|
||||
static PyObject *_wrap_wxGLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLCanvas * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SwapBuffers",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxGLCanvas_SwapBuffers(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
|
||||
static PyObject *_wrap_wxGLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxGLContext * _result;
|
||||
wxGLCanvas * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_GetContext",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxGLContext *)wxGLCanvas_GetContext(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyMethodDef glcanvascMethods[] = {
|
||||
{ "wxGLCanvas_GetContext", (PyCFunction) _wrap_wxGLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLCanvas_SwapBuffers", (PyCFunction) _wrap_wxGLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLCanvas_SetColour", (PyCFunction) _wrap_wxGLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLCanvas_SetCurrent", (PyCFunction) _wrap_wxGLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxGLCanvasWithContext", (PyCFunction) _wrap_new_wxGLCanvasWithContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxGLCanvas", (PyCFunction) _wrap_new_wxGLCanvas, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLContext_GetWindow", (PyCFunction) _wrap_wxGLContext_GetWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLContext_SwapBuffers", (PyCFunction) _wrap_wxGLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLContext_SetColour", (PyCFunction) _wrap_wxGLContext_SetColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGLContext_SetCurrent", (PyCFunction) _wrap_wxGLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "delete_wxGLContext", (PyCFunction) _wrap_delete_wxGLContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxGLContext", (PyCFunction) _wrap_new_wxGLContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* This table is used by the pointer type-checker
|
||||
*/
|
||||
static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_signed_long","_long",0},
|
||||
{ "_wxPrintQuality","_wxCoord",0},
|
||||
{ "_wxPrintQuality","_int",0},
|
||||
{ "_wxPrintQuality","_signed_int",0},
|
||||
{ "_wxPrintQuality","_unsigned_int",0},
|
||||
{ "_wxPrintQuality","_wxWindowID",0},
|
||||
{ "_wxPrintQuality","_uint",0},
|
||||
{ "_wxPrintQuality","_EBool",0},
|
||||
{ "_wxPrintQuality","_size_t",0},
|
||||
{ "_wxPrintQuality","_time_t",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_size_t","_wxCoord",0},
|
||||
{ "_size_t","_wxPrintQuality",0},
|
||||
{ "_size_t","_time_t",0},
|
||||
{ "_size_t","_unsigned_int",0},
|
||||
{ "_size_t","_int",0},
|
||||
{ "_size_t","_wxWindowID",0},
|
||||
{ "_size_t","_uint",0},
|
||||
{ "_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel},
|
||||
{ "_uint","_wxCoord",0},
|
||||
{ "_uint","_wxPrintQuality",0},
|
||||
{ "_uint","_time_t",0},
|
||||
{ "_uint","_size_t",0},
|
||||
{ "_uint","_unsigned_int",0},
|
||||
{ "_uint","_int",0},
|
||||
{ "_uint","_wxWindowID",0},
|
||||
{ "_wxChar","_char",0},
|
||||
{ "_char","_wxChar",0},
|
||||
{ "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
|
||||
{ "_EBool","_wxCoord",0},
|
||||
{ "_EBool","_wxPrintQuality",0},
|
||||
{ "_EBool","_signed_int",0},
|
||||
{ "_EBool","_int",0},
|
||||
{ "_EBool","_wxWindowID",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
|
||||
{ "_signed_int","_wxCoord",0},
|
||||
{ "_signed_int","_wxPrintQuality",0},
|
||||
{ "_signed_int","_EBool",0},
|
||||
{ "_signed_int","_wxWindowID",0},
|
||||
{ "_signed_int","_int",0},
|
||||
{ "_WXTYPE","_wxDateTime_t",0},
|
||||
{ "_WXTYPE","_short",0},
|
||||
{ "_WXTYPE","_signed_short",0},
|
||||
{ "_WXTYPE","_unsigned_short",0},
|
||||
{ "_unsigned_short","_wxDateTime_t",0},
|
||||
{ "_unsigned_short","_WXTYPE",0},
|
||||
{ "_unsigned_short","_short",0},
|
||||
{ "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject},
|
||||
{ "_wxObject","_wxGLContext",SwigwxGLContextTowxObject},
|
||||
{ "_signed_short","_WXTYPE",0},
|
||||
{ "_signed_short","_short",0},
|
||||
{ "_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow},
|
||||
{ "_unsigned_char","_byte",0},
|
||||
{ "_unsigned_int","_wxCoord",0},
|
||||
{ "_unsigned_int","_wxPrintQuality",0},
|
||||
{ "_unsigned_int","_time_t",0},
|
||||
{ "_unsigned_int","_size_t",0},
|
||||
{ "_unsigned_int","_uint",0},
|
||||
{ "_unsigned_int","_wxWindowID",0},
|
||||
{ "_unsigned_int","_int",0},
|
||||
{ "_short","_wxDateTime_t",0},
|
||||
{ "_short","_WXTYPE",0},
|
||||
{ "_short","_unsigned_short",0},
|
||||
{ "_short","_signed_short",0},
|
||||
{ "_wxWindowID","_wxCoord",0},
|
||||
{ "_wxWindowID","_wxPrintQuality",0},
|
||||
{ "_wxWindowID","_time_t",0},
|
||||
{ "_wxWindowID","_size_t",0},
|
||||
{ "_wxWindowID","_EBool",0},
|
||||
{ "_wxWindowID","_uint",0},
|
||||
{ "_wxWindowID","_int",0},
|
||||
{ "_wxWindowID","_signed_int",0},
|
||||
{ "_wxWindowID","_unsigned_int",0},
|
||||
{ "_int","_wxCoord",0},
|
||||
{ "_int","_wxPrintQuality",0},
|
||||
{ "_int","_time_t",0},
|
||||
{ "_int","_size_t",0},
|
||||
{ "_int","_EBool",0},
|
||||
{ "_int","_uint",0},
|
||||
{ "_int","_wxWindowID",0},
|
||||
{ "_int","_unsigned_int",0},
|
||||
{ "_int","_signed_int",0},
|
||||
{ "_wxDateTime_t","_unsigned_short",0},
|
||||
{ "_wxDateTime_t","_short",0},
|
||||
{ "_wxDateTime_t","_WXTYPE",0},
|
||||
{ "_time_t","_wxCoord",0},
|
||||
{ "_time_t","_wxPrintQuality",0},
|
||||
{ "_time_t","_unsigned_int",0},
|
||||
{ "_time_t","_int",0},
|
||||
{ "_time_t","_wxWindowID",0},
|
||||
{ "_time_t","_uint",0},
|
||||
{ "_time_t","_size_t",0},
|
||||
{ "_wxCoord","_int",0},
|
||||
{ "_wxCoord","_signed_int",0},
|
||||
{ "_wxCoord","_unsigned_int",0},
|
||||
{ "_wxCoord","_wxWindowID",0},
|
||||
{ "_wxCoord","_uint",0},
|
||||
{ "_wxCoord","_EBool",0},
|
||||
{ "_wxCoord","_size_t",0},
|
||||
{ "_wxCoord","_time_t",0},
|
||||
{ "_wxCoord","_wxPrintQuality",0},
|
||||
{ "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler},
|
||||
{ "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow},
|
||||
{0,0,0}};
|
||||
|
||||
static PyObject *SWIG_globals;
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
SWIGEXPORT(void) initglcanvasc() {
|
||||
PyObject *m, *d;
|
||||
SWIG_globals = SWIG_newvarlink();
|
||||
m = Py_InitModule("glcanvasc", glcanvascMethods);
|
||||
d = PyModule_GetDict(m);
|
||||
|
||||
|
||||
wxClassInfo::CleanUpClasses();
|
||||
wxClassInfo::InitializeClasses();
|
||||
|
||||
{
|
||||
int i;
|
||||
for (i = 0; _swig_mapping[i].n1; i++)
|
||||
SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
|
||||
}
|
||||
}
|
114
wxPython/contrib/glcanvas/mac/glcanvas.py
Normal file
114
wxPython/contrib/glcanvas/mac/glcanvas.py
Normal file
@ -0,0 +1,114 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import glcanvasc
|
||||
|
||||
from misc import *
|
||||
|
||||
from misc2 import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from events import *
|
||||
|
||||
from streams import *
|
||||
|
||||
from mdi import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from controls2 import *
|
||||
|
||||
from windows2 import *
|
||||
|
||||
from cmndlgs import *
|
||||
|
||||
from windows3 import *
|
||||
|
||||
from image import *
|
||||
|
||||
from printfw import *
|
||||
|
||||
from sizers import *
|
||||
|
||||
from filesys import *
|
||||
|
||||
from utils import *
|
||||
import wx
|
||||
class wxGLContextPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,glcanvasc=glcanvasc):
|
||||
if self.thisown == 1 :
|
||||
glcanvasc.delete_wxGLContext(self)
|
||||
def SetCurrent(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColour(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SwapBuffers(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindow(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxGLContext instance at %s>" % (self.this,)
|
||||
class wxGLContext(wxGLContextPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxGLCanvasPtr(wxScrolledWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetCurrent(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColour(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SwapBuffers(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetContext(self, *_args, **_kwargs):
|
||||
val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
|
||||
if val: val = wxGLContextPtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxGLCanvas instance at %s>" % (self.this,)
|
||||
class wxGLCanvas(wxGLCanvasPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxGLCanvasWithContext(*_args,**_kwargs):
|
||||
val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(self)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
@ -9215,115 +9215,6 @@ static PyObject *_wrap_wxStyledTextEvent_SetY(PyObject *self, PyObject *args, Py
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_SetDragText(_swigobj,_swigarg0) (_swigobj->SetDragText(_swigarg0))
|
||||
static PyObject *_wrap_wxStyledTextEvent_SetDragText(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStyledTextEvent * _arg0;
|
||||
wxString * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","val", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextEvent_SetDragText",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextEvent_SetDragText. Expected _wxStyledTextEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg1 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
|
||||
#endif
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStyledTextEvent_SetDragText(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_SetDragAllowMove(_swigobj,_swigarg0) (_swigobj->SetDragAllowMove(_swigarg0))
|
||||
static PyObject *_wrap_wxStyledTextEvent_SetDragAllowMove(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStyledTextEvent * _arg0;
|
||||
bool _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1;
|
||||
char *_kwnames[] = { "self","val", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextEvent_SetDragAllowMove",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextEvent_SetDragAllowMove. Expected _wxStyledTextEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStyledTextEvent_SetDragAllowMove(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_SetDragResult(_swigobj,_swigarg0) (_swigobj->SetDragResult(_swigarg0))
|
||||
static PyObject *_wrap_wxStyledTextEvent_SetDragResult(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStyledTextEvent * _arg0;
|
||||
wxDragResult _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","val", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextEvent_SetDragResult",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextEvent_SetDragResult. Expected _wxStyledTextEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStyledTextEvent_SetDragResult(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
|
||||
static PyObject *_wrap_wxStyledTextEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -9788,92 +9679,6 @@ static PyObject *_wrap_wxStyledTextEvent_GetY(PyObject *self, PyObject *args, Py
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_GetDragText(_swigobj) (_swigobj->GetDragText())
|
||||
static PyObject *_wrap_wxStyledTextEvent_GetDragText(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxString * _result;
|
||||
wxStyledTextEvent * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextEvent_GetDragText",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextEvent_GetDragText. Expected _wxStyledTextEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxStyledTextEvent_GetDragText(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
||||
}
|
||||
{
|
||||
delete _result;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_GetDragAllowMove(_swigobj) (_swigobj->GetDragAllowMove())
|
||||
static PyObject *_wrap_wxStyledTextEvent_GetDragAllowMove(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxStyledTextEvent * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextEvent_GetDragAllowMove",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextEvent_GetDragAllowMove. Expected _wxStyledTextEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxStyledTextEvent_GetDragAllowMove(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_GetDragResult(_swigobj) (_swigobj->GetDragResult())
|
||||
static PyObject *_wrap_wxStyledTextEvent_GetDragResult(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDragResult _result;
|
||||
wxStyledTextEvent * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextEvent_GetDragResult",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextEvent_GetDragResult. Expected _wxStyledTextEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxDragResult )wxStyledTextEvent_GetDragResult(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStyledTextEvent_GetShift(_swigobj) (_swigobj->GetShift())
|
||||
static PyObject *_wrap_wxStyledTextEvent_GetShift(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -9996,9 +9801,6 @@ static PyMethodDef stc_cMethods[] = {
|
||||
{ "wxStyledTextEvent_GetAlt", (PyCFunction) _wrap_wxStyledTextEvent_GetAlt, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetControl", (PyCFunction) _wrap_wxStyledTextEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetShift", (PyCFunction) _wrap_wxStyledTextEvent_GetShift, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetDragResult", (PyCFunction) _wrap_wxStyledTextEvent_GetDragResult, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetDragAllowMove", (PyCFunction) _wrap_wxStyledTextEvent_GetDragAllowMove, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetDragText", (PyCFunction) _wrap_wxStyledTextEvent_GetDragText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetY", (PyCFunction) _wrap_wxStyledTextEvent_GetY, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetX", (PyCFunction) _wrap_wxStyledTextEvent_GetX, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetListType", (PyCFunction) _wrap_wxStyledTextEvent_GetListType, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -10016,9 +9818,6 @@ static PyMethodDef stc_cMethods[] = {
|
||||
{ "wxStyledTextEvent_GetModifiers", (PyCFunction) _wrap_wxStyledTextEvent_GetModifiers, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetKey", (PyCFunction) _wrap_wxStyledTextEvent_GetKey, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_GetPosition", (PyCFunction) _wrap_wxStyledTextEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_SetDragResult", (PyCFunction) _wrap_wxStyledTextEvent_SetDragResult, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_SetDragAllowMove", (PyCFunction) _wrap_wxStyledTextEvent_SetDragAllowMove, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_SetDragText", (PyCFunction) _wrap_wxStyledTextEvent_SetDragText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_SetY", (PyCFunction) _wrap_wxStyledTextEvent_SetY, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_SetX", (PyCFunction) _wrap_wxStyledTextEvent_SetX, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStyledTextEvent_SetListType", (PyCFunction) _wrap_wxStyledTextEvent_SetListType, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -10956,9 +10755,6 @@ SWIGEXPORT(void) initstc_c() {
|
||||
PyDict_SetItemString(d,"wxEVT_STC_URIDROPPED", PyInt_FromLong((long) wxEVT_STC_URIDROPPED));
|
||||
PyDict_SetItemString(d,"wxEVT_STC_DWELLSTART", PyInt_FromLong((long) wxEVT_STC_DWELLSTART));
|
||||
PyDict_SetItemString(d,"wxEVT_STC_DWELLEND", PyInt_FromLong((long) wxEVT_STC_DWELLEND));
|
||||
PyDict_SetItemString(d,"wxEVT_STC_START_DRAG", PyInt_FromLong((long) wxEVT_STC_START_DRAG));
|
||||
PyDict_SetItemString(d,"wxEVT_STC_DRAG_OVER", PyInt_FromLong((long) wxEVT_STC_DRAG_OVER));
|
||||
PyDict_SetItemString(d,"wxEVT_STC_DO_DROP", PyInt_FromLong((long) wxEVT_STC_DO_DROP));
|
||||
|
||||
|
||||
wxClassInfo::CleanUpClasses();
|
||||
|
@ -1002,15 +1002,6 @@ class wxStyledTextEventPtr(wxCommandEventPtr):
|
||||
def SetY(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_SetY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDragText(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_SetDragText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDragAllowMove(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_SetDragAllowMove,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDragResult(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_SetDragResult,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_GetPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@ -1062,15 +1053,6 @@ class wxStyledTextEventPtr(wxCommandEventPtr):
|
||||
def GetY(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_GetY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDragText(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_GetDragText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDragAllowMove(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_GetDragAllowMove,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDragResult(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_GetDragResult,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetShift(self, *_args, **_kwargs):
|
||||
val = apply(stc_c.wxStyledTextEvent_GetShift,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@ -1619,9 +1601,6 @@ wxEVT_STC_USERLISTSELECTION = stc_c.wxEVT_STC_USERLISTSELECTION
|
||||
wxEVT_STC_URIDROPPED = stc_c.wxEVT_STC_URIDROPPED
|
||||
wxEVT_STC_DWELLSTART = stc_c.wxEVT_STC_DWELLSTART
|
||||
wxEVT_STC_DWELLEND = stc_c.wxEVT_STC_DWELLEND
|
||||
wxEVT_STC_START_DRAG = stc_c.wxEVT_STC_START_DRAG
|
||||
wxEVT_STC_DRAG_OVER = stc_c.wxEVT_STC_DRAG_OVER
|
||||
wxEVT_STC_DO_DROP = stc_c.wxEVT_STC_DO_DROP
|
||||
|
||||
|
||||
#-------------- USER INCLUDE -----------------------
|
||||
|
@ -28,7 +28,7 @@ on.
|
||||
"""
|
||||
|
||||
|
||||
BUILD_GLCANVAS = 1 # If true, build the contrib/glcanvas extension module
|
||||
BUILD_GLCANVAS = 0 # If true, build the contrib/glcanvas extension module
|
||||
BUILD_OGL = 1 # If true, build the contrib/ogl extension module
|
||||
BUILD_STC = 1 # If true, build the contrib/stc extension module
|
||||
BUILD_IEWIN = 0 # Internet Explorer wrapper (experimental)
|
||||
@ -232,6 +232,29 @@ if os.name == 'nt':
|
||||
|
||||
|
||||
|
||||
elif os.name == 'posix' and sys.platform == "darwin1":
|
||||
# Flags and such for a Darwin (Max OS X) build of Python
|
||||
|
||||
WXDIR = '..' # assumes IN_CVS_TREE
|
||||
WXPLAT = '__WXMAC__'
|
||||
GENDIR = 'mac'
|
||||
|
||||
includes = ['src']
|
||||
defines = [('SWIG_GLOBAL', None),
|
||||
('HAVE_CONFIG_H', None),
|
||||
('WXP_USE_THREAD', '1'),
|
||||
]
|
||||
libdirs = []
|
||||
libs = []
|
||||
|
||||
cflags = os.popen(WX_CONFIG + ' --cxxflags', 'r').read()[:-1]
|
||||
cflags = string.split(cflags)
|
||||
|
||||
lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
|
||||
lflags = string.split(lflags)
|
||||
|
||||
|
||||
|
||||
elif os.name == 'posix':
|
||||
# Set flags for Unix type platforms
|
||||
|
||||
@ -277,7 +300,8 @@ swig_args = ['-c++', '-shadow', '-python', '-keyword',
|
||||
'-dnone',
|
||||
#'-dascii',
|
||||
#'-docstring', '-Sbefore',
|
||||
'-I./src', '-D'+WXPLAT]
|
||||
'-I./src', '-D'+WXPLAT,
|
||||
]
|
||||
swig_deps = ['src/my_typemaps.i']
|
||||
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
%module clip_dnd
|
||||
|
||||
#ifndef __WXMAC__
|
||||
|
||||
%{
|
||||
#include "helpers.h"
|
||||
#include <wx/dataobj.h>
|
||||
@ -645,4 +647,5 @@ public:
|
||||
%}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
#endif
|
||||
|
||||
|
@ -490,7 +490,9 @@ public:
|
||||
void Check(int uiIndex, int bCheck = TRUE);
|
||||
void InsertItems(int LCOUNT, wxString* choices, int pos);
|
||||
|
||||
#ifndef __WXMAC__
|
||||
int GetItemHeight();
|
||||
#endif
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
@ -713,7 +715,10 @@ public:
|
||||
|
||||
wxString GetString(int n);
|
||||
|
||||
#ifdef __WXMSW__
|
||||
#ifdef __WXGTK__
|
||||
%name(GetItemLabel)wxString GetLabel( int item );
|
||||
%name(SetItemLabel)void SetLabel( int item, const wxString& label );
|
||||
#else
|
||||
void SetString(int n, const wxString& label);
|
||||
%pragma(python) addtoclass = "
|
||||
GetItemLabel = GetString
|
||||
@ -721,9 +726,6 @@ public:
|
||||
"
|
||||
int GetColumnCount();
|
||||
int GetRowCount();
|
||||
#else
|
||||
%name(GetItemLabel)wxString GetLabel( int item );
|
||||
%name(SetItemLabel)void SetLabel( int item, const wxString& label );
|
||||
#endif
|
||||
|
||||
int GetSelection();
|
||||
@ -848,6 +850,7 @@ public:
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#ifndef __WXMAC__
|
||||
enum { wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, };
|
||||
|
||||
class wxToggleButton : public wxControl {
|
||||
@ -880,6 +883,7 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -57,13 +57,13 @@ public:
|
||||
class wxBitmap : public wxGDIObject
|
||||
{
|
||||
public:
|
||||
wxBitmap(const wxString& name, wxBitmapType type);
|
||||
wxBitmap(const wxString& name, wxBitmapType type=wxBITMAP_TYPE_BMP);
|
||||
~wxBitmap();
|
||||
|
||||
wxPalette* GetPalette();
|
||||
wxMask* GetMask();
|
||||
bool LoadFile(const wxString& name, long flags);
|
||||
bool SaveFile(const wxString& name, int type, wxPalette* palette = NULL);
|
||||
bool LoadFile(const wxString& name, wxBitmapType type=wxBITMAP_TYPE_BMP);
|
||||
bool SaveFile(const wxString& name, wxBitmapType type, wxPalette* palette = NULL);
|
||||
void SetMask(wxMask* mask);
|
||||
#ifdef __WXMSW__
|
||||
void SetPalette(wxPalette& palette);
|
||||
|
1950
wxPython/src/mac/calendar.cpp
Normal file
1950
wxPython/src/mac/calendar.cpp
Normal file
File diff suppressed because it is too large
Load Diff
254
wxPython/src/mac/calendar.py
Normal file
254
wxPython/src/mac/calendar.py
Normal file
@ -0,0 +1,254 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import calendarc
|
||||
|
||||
from misc import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
|
||||
from utils import *
|
||||
import wx
|
||||
|
||||
def EVT_CALENDAR(win, id, fn):
|
||||
win.Connect(id, -1, wxEVT_CALENDAR_DOUBLECLICKED, fn)
|
||||
|
||||
def EVT_CALENDAR_SEL_CHANGED(win, id, fn):
|
||||
win.Connect(id, -1, wxEVT_CALENDAR_SEL_CHANGED, fn)
|
||||
|
||||
def EVT_CALENDAR_DAY(win, id, fn):
|
||||
win.Connect(id, -1, wxEVT_CALENDAR_DAY_CHANGED, fn)
|
||||
|
||||
def EVT_CALENDAR_MONTH(win, id, fn):
|
||||
win.Connect(id, -1, wxEVT_CALENDAR_MONTH_CHANGED, fn)
|
||||
|
||||
def EVT_CALENDAR_YEAR(win, id, fn):
|
||||
win.Connect(id, -1, wxEVT_CALENDAR_YEAR_CHANGED, fn)
|
||||
|
||||
def EVT_CALENDAR_WEEKDAY_CLICKED(win, id, fn):
|
||||
win.Connect(id, -1, wxEVT_CALENDAR_WEEKDAY_CLICKED, fn)
|
||||
|
||||
|
||||
class wxCalendarDateAttrPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_SetTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_SetBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBorderColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_SetBorderColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFont(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_SetFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBorder(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_SetBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHoliday(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_SetHoliday,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasTextColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_HasTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_HasBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasBorderColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_HasBorderColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasFont(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_HasFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasBorder(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_HasBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsHoliday(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_IsHoliday,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_GetTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_GetBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetBorderColour(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_GetBorderColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetFont(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_GetFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def GetBorder(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarDateAttr_GetBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxCalendarDateAttr instance at %s>" % (self.this,)
|
||||
class wxCalendarDateAttr(wxCalendarDateAttrPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(calendarc.new_wxCalendarDateAttr,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
def wxCalendarDateAttrBorder(*_args,**_kwargs):
|
||||
val = wxCalendarDateAttrPtr(apply(calendarc.new_wxCalendarDateAttrBorder,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
class wxCalendarEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetDate(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarEvent_GetDate,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def GetWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarEvent_GetWeekDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxCalendarEvent instance at %s>" % (self.this,)
|
||||
class wxCalendarEvent(wxCalendarEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(calendarc.new_wxCalendarEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxCalendarCtrlPtr(wxControlPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDate(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_SetDate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDate(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetDate,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def EnableYearChange(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_EnableYearChange,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableMonthChange(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_EnableMonthChange,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableHolidayDisplay(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_EnableHolidayDisplay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHeaderColours(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_SetHeaderColours,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHeaderColourFg(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetHeaderColourFg,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetHeaderColourBg(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetHeaderColourBg,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def SetHighlightColours(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_SetHighlightColours,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHighlightColourFg(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetHighlightColourFg,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetHighlightColourBg(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetHighlightColourBg,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def SetHolidayColours(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_SetHolidayColours,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHolidayColourFg(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetHolidayColourFg,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetHolidayColourBg(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetHolidayColourBg,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetAttr(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_GetAttr,(self,) + _args, _kwargs)
|
||||
if val: val = wxCalendarDateAttrPtr(val)
|
||||
return val
|
||||
def SetAttr(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_SetAttr,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHoliday(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_SetHoliday,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ResetAttr(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_ResetAttr,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HitTest(self, *_args, **_kwargs):
|
||||
val = apply(calendarc.wxCalendarCtrl_HitTest,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxCalendarCtrl instance at %s>" % (self.this,)
|
||||
class wxCalendarCtrl(wxCalendarCtrlPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(calendarc.new_wxCalendarCtrl,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreCalendarCtrl(*_args,**_kwargs):
|
||||
val = wxCalendarCtrlPtr(apply(calendarc.new_wxPreCalendarCtrl,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxCAL_SUNDAY_FIRST = calendarc.wxCAL_SUNDAY_FIRST
|
||||
wxCAL_MONDAY_FIRST = calendarc.wxCAL_MONDAY_FIRST
|
||||
wxCAL_SHOW_HOLIDAYS = calendarc.wxCAL_SHOW_HOLIDAYS
|
||||
wxCAL_NO_YEAR_CHANGE = calendarc.wxCAL_NO_YEAR_CHANGE
|
||||
wxCAL_NO_MONTH_CHANGE = calendarc.wxCAL_NO_MONTH_CHANGE
|
||||
wxCAL_HITTEST_NOWHERE = calendarc.wxCAL_HITTEST_NOWHERE
|
||||
wxCAL_HITTEST_HEADER = calendarc.wxCAL_HITTEST_HEADER
|
||||
wxCAL_HITTEST_DAY = calendarc.wxCAL_HITTEST_DAY
|
||||
wxCAL_BORDER_NONE = calendarc.wxCAL_BORDER_NONE
|
||||
wxCAL_BORDER_SQUARE = calendarc.wxCAL_BORDER_SQUARE
|
||||
wxCAL_BORDER_ROUND = calendarc.wxCAL_BORDER_ROUND
|
||||
wxEVT_CALENDAR_DOUBLECLICKED = calendarc.wxEVT_CALENDAR_DOUBLECLICKED
|
||||
wxEVT_CALENDAR_SEL_CHANGED = calendarc.wxEVT_CALENDAR_SEL_CHANGED
|
||||
wxEVT_CALENDAR_DAY_CHANGED = calendarc.wxEVT_CALENDAR_DAY_CHANGED
|
||||
wxEVT_CALENDAR_MONTH_CHANGED = calendarc.wxEVT_CALENDAR_MONTH_CHANGED
|
||||
wxEVT_CALENDAR_YEAR_CHANGED = calendarc.wxEVT_CALENDAR_YEAR_CHANGED
|
||||
wxEVT_CALENDAR_WEEKDAY_CLICKED = calendarc.wxEVT_CALENDAR_WEEKDAY_CLICKED
|
||||
|
||||
|
||||
#-------------- USER INCLUDE -----------------------
|
||||
|
||||
|
||||
# Stuff these names into the wx namespace so wxPyConstructObject can find them
|
||||
|
||||
wx.wxCalendarEventPtr = wxCalendarEventPtr
|
98
wxPython/src/mac/clip_dnd.cpp
Normal file
98
wxPython/src/mac/clip_dnd.cpp
Normal file
@ -0,0 +1,98 @@
|
||||
/*
|
||||
* FILE : src/mac/clip_dnd.cpp
|
||||
*
|
||||
* This file was automatically generated by :
|
||||
* Simplified Wrapper and Interface Generator (SWIG)
|
||||
* Version 1.1 (Build 883)
|
||||
*
|
||||
* Portions Copyright (c) 1995-1998
|
||||
* The University of Utah and The Regents of the University of California.
|
||||
* Permission is granted to distribute this file in any manner provided
|
||||
* this notice remains intact.
|
||||
*
|
||||
* Do not make changes to this file--changes will be lost!
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#define SWIGCODE
|
||||
/* Implementation : PYTHON */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
/* Definitions for Windows/Unix exporting */
|
||||
#if defined(__WIN32__)
|
||||
# if defined(_MSC_VER)
|
||||
# define SWIGEXPORT(a) __declspec(dllexport) a
|
||||
# else
|
||||
# if defined(__BORLANDC__)
|
||||
# define SWIGEXPORT(a) a _export
|
||||
# else
|
||||
# define SWIGEXPORT(a) a
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define SWIGEXPORT(a) a
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void SWIG_MakePtr(char *, void *, char *);
|
||||
extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
|
||||
extern char *SWIG_GetPtr(char *, void **, char *);
|
||||
extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
|
||||
extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
||||
extern PyObject *SWIG_newvarlink(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#define SWIG_init initclip_dndc
|
||||
|
||||
#define SWIG_name "clip_dndc"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static PyMethodDef clip_dndcMethods[] = {
|
||||
{ NULL, NULL }
|
||||
};
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* This table is used by the pointer type-checker
|
||||
*/
|
||||
static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_signed_long","_long",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_signed_int","_int",0},
|
||||
{ "_unsigned_short","_short",0},
|
||||
{ "_signed_short","_short",0},
|
||||
{ "_unsigned_int","_int",0},
|
||||
{ "_short","_unsigned_short",0},
|
||||
{ "_short","_signed_short",0},
|
||||
{ "_int","_unsigned_int",0},
|
||||
{ "_int","_signed_int",0},
|
||||
{0,0,0}};
|
||||
|
||||
static PyObject *SWIG_globals;
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
SWIGEXPORT(void) initclip_dndc() {
|
||||
PyObject *m, *d;
|
||||
SWIG_globals = SWIG_newvarlink();
|
||||
m = Py_InitModule("clip_dndc", clip_dndcMethods);
|
||||
d = PyModule_GetDict(m);
|
||||
{
|
||||
int i;
|
||||
for (i = 0; _swig_mapping[i].n1; i++)
|
||||
SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
|
||||
}
|
||||
}
|
10
wxPython/src/mac/clip_dnd.py
Normal file
10
wxPython/src/mac/clip_dnd.py
Normal file
@ -0,0 +1,10 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import clip_dndc
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
4090
wxPython/src/mac/cmndlgs.cpp
Normal file
4090
wxPython/src/mac/cmndlgs.cpp
Normal file
File diff suppressed because it is too large
Load Diff
488
wxPython/src/mac/cmndlgs.py
Normal file
488
wxPython/src/mac/cmndlgs.py
Normal file
@ -0,0 +1,488 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import cmndlgsc
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from events import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
import wx
|
||||
|
||||
|
||||
def EVT_COMMAND_FIND(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_COMMAND_FIND, func)
|
||||
|
||||
def EVT_COMMAND_FIND_NEXT(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_COMMAND_FIND_NEXT, func)
|
||||
|
||||
def EVT_COMMAND_FIND_REPLACE(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE, func)
|
||||
|
||||
def EVT_COMMAND_FIND_REPLACE_ALL(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE_ALL, func)
|
||||
|
||||
def EVT_COMMAND_FIND_CLOSE(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_COMMAND_FIND_CLOSE, func)
|
||||
|
||||
|
||||
class wxColourDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,cmndlgsc=cmndlgsc):
|
||||
if self.thisown == 1 :
|
||||
cmndlgsc.delete_wxColourData(self)
|
||||
def GetChooseFull(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourData_GetChooseFull,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColour(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetCustomColour(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetChooseFull(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourData_SetChooseFull,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColour(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourData_SetColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCustomColour(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourData_SetCustomColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxColourData instance at %s>" % (self.this,)
|
||||
class wxColourData(wxColourDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxColourData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxColourDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetColourData(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourDialog_GetColourData,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourDataPtr(val)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxColourDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxColourDialog instance at %s>" % (self.this,)
|
||||
class wxColourDialog(wxColourDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxDirDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPath(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxDirDialog_GetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMessage(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxDirDialog_GetMessage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStyle(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxDirDialog_GetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMessage(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxDirDialog_SetMessage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPath(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxDirDialog_SetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxDirDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxDirDialog instance at %s>" % (self.this,)
|
||||
class wxDirDialog(wxDirDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFileDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetDirectory(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetDirectory,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFilename(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetFilename,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFilterIndex(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetFilterIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMessage(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetMessage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPath(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStyle(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWildcard(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetWildcard,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDirectory(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetDirectory,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFilename(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetFilename,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFilterIndex(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetFilterIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMessage(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetMessage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPath(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStyle(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWildcard(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_SetWildcard,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFilenames(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetFilenames,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPaths(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFileDialog_GetPaths,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFileDialog instance at %s>" % (self.this,)
|
||||
class wxFileDialog(wxFileDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSingleChoiceDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxSingleChoiceDialog_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStringSelection(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxSingleChoiceDialog_GetStringSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSelection(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxSingleChoiceDialog_SetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxSingleChoiceDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSingleChoiceDialog instance at %s>" % (self.this,)
|
||||
class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxTextEntryDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetValue(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxTextEntryDialog_GetValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetValue(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxTextEntryDialog_SetValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxTextEntryDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxTextEntryDialog instance at %s>" % (self.this,)
|
||||
class wxTextEntryDialog(wxTextEntryDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFontDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,cmndlgsc=cmndlgsc):
|
||||
if self.thisown == 1 :
|
||||
cmndlgsc.delete_wxFontData(self)
|
||||
def EnableEffects(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_EnableEffects,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAllowSymbols(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_GetAllowSymbols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColour(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetChosenFont(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetEnableEffects(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_GetEnableEffects,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetInitialFont(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_GetInitialFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetShowHelp(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_GetShowHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAllowSymbols(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_SetAllowSymbols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetChosenFont(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_SetChosenFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColour(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_SetColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetInitialFont(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_SetInitialFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRange(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_SetRange,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetShowHelp(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontData_SetShowHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFontData instance at %s>" % (self.this,)
|
||||
class wxFontData(wxFontDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFontData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFontDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetFontData(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontDialog_GetFontData,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontDataPtr(val)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFontDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFontDialog instance at %s>" % (self.this,)
|
||||
class wxFontDialog(wxFontDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxMessageDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxMessageDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMessageDialog instance at %s>" % (self.this,)
|
||||
class wxMessageDialog(wxMessageDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxProgressDialogPtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Update(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxProgressDialog_Update,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Resume(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxProgressDialog_Resume,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxProgressDialog instance at %s>" % (self.this,)
|
||||
class wxProgressDialog(wxProgressDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFindDialogEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetFlags(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_GetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFindString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_GetFindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetReplaceString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_GetReplaceString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDialog(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_GetDialog,(self,) + _args, _kwargs)
|
||||
if val: val = wxFindReplaceDialogPtr(val)
|
||||
return val
|
||||
def SetFlags(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_SetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFindString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_SetFindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetReplaceString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindDialogEvent_SetReplaceString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFindDialogEvent instance at %s>" % (self.this,)
|
||||
class wxFindDialogEvent(wxFindDialogEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFindDialogEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFindReplaceDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,cmndlgsc=cmndlgsc):
|
||||
if self.thisown == 1 :
|
||||
cmndlgsc.delete_wxFindReplaceData(self)
|
||||
def GetFindString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceData_GetFindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetReplaceString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceData_GetReplaceString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFlags(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceData_GetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFlags(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceData_SetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFindString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceData_SetFindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetReplaceString(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceData_SetReplaceString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFindReplaceData instance at %s>" % (self.this,)
|
||||
class wxFindReplaceData(wxFindReplaceDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFindReplaceData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFindReplaceDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceDialog_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetData(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceDialog_GetData,(self,) + _args, _kwargs)
|
||||
if val: val = wxFindReplaceDataPtr(val)
|
||||
return val
|
||||
def SetData(self, *_args, **_kwargs):
|
||||
val = apply(cmndlgsc.wxFindReplaceDialog_SetData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFindReplaceDialog instance at %s>" % (self.this,)
|
||||
class wxFindReplaceDialog(wxFindReplaceDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFindReplaceDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreFindReplaceDialog(*_args,**_kwargs):
|
||||
val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxFR_DOWN = cmndlgsc.wxFR_DOWN
|
||||
wxFR_WHOLEWORD = cmndlgsc.wxFR_WHOLEWORD
|
||||
wxFR_MATCHCASE = cmndlgsc.wxFR_MATCHCASE
|
||||
wxFR_REPLACEDIALOG = cmndlgsc.wxFR_REPLACEDIALOG
|
||||
wxFR_NOUPDOWN = cmndlgsc.wxFR_NOUPDOWN
|
||||
wxFR_NOMATCHCASE = cmndlgsc.wxFR_NOMATCHCASE
|
||||
wxFR_NOWHOLEWORD = cmndlgsc.wxFR_NOWHOLEWORD
|
||||
wxEVT_COMMAND_FIND = cmndlgsc.wxEVT_COMMAND_FIND
|
||||
wxEVT_COMMAND_FIND_NEXT = cmndlgsc.wxEVT_COMMAND_FIND_NEXT
|
||||
wxEVT_COMMAND_FIND_REPLACE = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE
|
||||
wxEVT_COMMAND_FIND_REPLACE_ALL = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE_ALL
|
||||
wxEVT_COMMAND_FIND_CLOSE = cmndlgsc.wxEVT_COMMAND_FIND_CLOSE
|
11024
wxPython/src/mac/controls.cpp
Normal file
11024
wxPython/src/mac/controls.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1093
wxPython/src/mac/controls.py
Normal file
1093
wxPython/src/mac/controls.py
Normal file
File diff suppressed because it is too large
Load Diff
9981
wxPython/src/mac/controls2.cpp
Normal file
9981
wxPython/src/mac/controls2.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1254
wxPython/src/mac/controls2.py
Normal file
1254
wxPython/src/mac/controls2.py
Normal file
File diff suppressed because it is too large
Load Diff
7389
wxPython/src/mac/events.cpp
Normal file
7389
wxPython/src/mac/events.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1028
wxPython/src/mac/events.py
Normal file
1028
wxPython/src/mac/events.py
Normal file
File diff suppressed because it is too large
Load Diff
2318
wxPython/src/mac/filesys.cpp
Normal file
2318
wxPython/src/mac/filesys.cpp
Normal file
File diff suppressed because it is too large
Load Diff
235
wxPython/src/mac/filesys.py
Normal file
235
wxPython/src/mac/filesys.py
Normal file
@ -0,0 +1,235 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import filesysc
|
||||
|
||||
from utils import *
|
||||
|
||||
from image import *
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from streams import *
|
||||
import wx
|
||||
import string
|
||||
|
||||
import types
|
||||
def wxMemoryFSHandler_AddFile(filename, a, b=''):
|
||||
if isinstance(a, wxImage):
|
||||
__wxMemoryFSHandler_AddFile_wxImage(filename, a, b)
|
||||
elif isinstance(a, wxBitmap):
|
||||
__wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b)
|
||||
elif type(a) == types.StringType:
|
||||
#__wxMemoryFSHandler_AddFile_wxString(filename, a)
|
||||
__wxMemoryFSHandler_AddFile_Data(filename, a)
|
||||
else: raise TypeError, 'wxImage, wxBitmap or string expected'
|
||||
|
||||
class wxFSFilePtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetStream(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFSFile_GetStream,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMimeType(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFSFile_GetMimeType,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLocation(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFSFile_GetLocation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAnchor(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFSFile_GetAnchor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetModificationTime(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFSFile_GetModificationTime,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFSFile instance at %s>" % (self.this,)
|
||||
class wxFSFile(wxFSFilePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(filesysc.new_wxFSFile,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxCPPFileSystemHandlerPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxCPPFileSystemHandler instance at %s>" % (self.this,)
|
||||
class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CanOpen(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_CanOpen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def OpenFile(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_OpenFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindFirst(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_FindFirst,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindNext(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_FindNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetProtocol(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_GetProtocol,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLeftLocation(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_GetLeftLocation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAnchor(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_GetAnchor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRightLocation(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_GetRightLocation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMimeTypeFromExt(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystemHandler_GetMimeTypeFromExt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFileSystemHandler instance at %s>" % (self.this,)
|
||||
class wxFileSystemHandler(wxFileSystemHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(filesysc.new_wxFileSystemHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxFileSystemHandler)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFileSystemPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def ChangePathTo(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystem_ChangePathTo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPath(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystem_GetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def OpenFile(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystem_OpenFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindFirst(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystem_FindFirst,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindNext(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxFileSystem_FindNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFileSystem instance at %s>" % (self.this,)
|
||||
class wxFileSystem(wxFileSystemPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(filesysc.new_wxFileSystem,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def CanOpen(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxInternetFSHandler_CanOpen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def OpenFile(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxInternetFSHandler_OpenFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxInternetFSHandler instance at %s>" % (self.this,)
|
||||
class wxInternetFSHandler(wxInternetFSHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(filesysc.new_wxInternetFSHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def CanOpen(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxZipFSHandler_CanOpen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def OpenFile(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxZipFSHandler_OpenFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindFirst(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxZipFSHandler_FindFirst,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindNext(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxZipFSHandler_FindNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxZipFSHandler instance at %s>" % (self.this,)
|
||||
class wxZipFSHandler(wxZipFSHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(filesysc.new_wxZipFSHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def CanOpen(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxMemoryFSHandler_CanOpen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def OpenFile(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxMemoryFSHandler_OpenFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindFirst(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxMemoryFSHandler_FindFirst,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindNext(self, *_args, **_kwargs):
|
||||
val = apply(filesysc.wxMemoryFSHandler_FindNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMemoryFSHandler instance at %s>" % (self.this,)
|
||||
class wxMemoryFSHandler(wxMemoryFSHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(filesysc.new_wxMemoryFSHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
__wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage
|
||||
|
||||
__wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap
|
||||
|
||||
__wxMemoryFSHandler_AddFile_Data = filesysc.__wxMemoryFSHandler_AddFile_Data
|
||||
|
||||
wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler
|
||||
|
||||
wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers
|
||||
|
||||
wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
2366
wxPython/src/mac/frames.cpp
Normal file
2366
wxPython/src/mac/frames.cpp
Normal file
File diff suppressed because it is too large
Load Diff
244
wxPython/src/mac/frames.py
Normal file
244
wxPython/src/mac/frames.py
Normal file
@ -0,0 +1,244 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import framesc
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
class wxTopLevelWindowPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Maximize(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_Maximize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Restore(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_Restore,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Iconize(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_Iconize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsMaximized(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_IsMaximized,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsIconized(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_IsIconized,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetIcon(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_GetIcon,(self,) + _args, _kwargs)
|
||||
if val: val = wxIconPtr(val)
|
||||
return val
|
||||
def SetIcon(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_SetIcon,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowFullScreen(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_ShowFullScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsFullScreen(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_IsFullScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTitle(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_SetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTitle(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxTopLevelWindow_GetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxTopLevelWindow instance at %s>" % (self.this,)
|
||||
class wxTopLevelWindow(wxTopLevelWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxTopLevelWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreTopLevelWindow(*_args,**_kwargs):
|
||||
val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxFramePtr(wxTopLevelWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientAreaOrigin(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetClientAreaOrigin,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetMenuBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMenuBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Command(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Command,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ProcessCommand(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStatusText(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetStatusText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStatusWidths(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateToolBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFrame instance at %s>" % (self.this,)
|
||||
class wxFrame(wxFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreFrame(*_args,**_kwargs):
|
||||
val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxDialogPtr(wxTopLevelWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Centre(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_Centre,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EndModal(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_EndModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetModal(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_SetModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsModal(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_IsModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetReturnCode(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetReturnCode(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateTextSizer(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateButtonSizer(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxDialog instance at %s>" % (self.this,)
|
||||
class wxDialog(wxDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreDialog(*_args,**_kwargs):
|
||||
val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxMiniFramePtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxMiniFrame_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMiniFrame instance at %s>" % (self.this,)
|
||||
class wxMiniFrame(wxMiniFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreMiniFrame(*_args,**_kwargs):
|
||||
val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxTipWindowPtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxTipWindow instance at %s>" % (self.this,)
|
||||
class wxTipWindow(wxTipWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxTipWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxFULLSCREEN_NOMENUBAR = framesc.wxFULLSCREEN_NOMENUBAR
|
||||
wxFULLSCREEN_NOTOOLBAR = framesc.wxFULLSCREEN_NOTOOLBAR
|
||||
wxFULLSCREEN_NOSTATUSBAR = framesc.wxFULLSCREEN_NOSTATUSBAR
|
||||
wxFULLSCREEN_NOBORDER = framesc.wxFULLSCREEN_NOBORDER
|
||||
wxFULLSCREEN_NOCAPTION = framesc.wxFULLSCREEN_NOCAPTION
|
||||
wxFULLSCREEN_ALL = framesc.wxFULLSCREEN_ALL
|
||||
wxTOPLEVEL_EX_DIALOG = framesc.wxTOPLEVEL_EX_DIALOG
|
11651
wxPython/src/mac/gdi.cpp
Normal file
11651
wxPython/src/mac/gdi.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1354
wxPython/src/mac/gdi.py
Normal file
1354
wxPython/src/mac/gdi.py
Normal file
File diff suppressed because it is too large
Load Diff
14606
wxPython/src/mac/grid.cpp
Normal file
14606
wxPython/src/mac/grid.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1658
wxPython/src/mac/grid.py
Normal file
1658
wxPython/src/mac/grid.py
Normal file
File diff suppressed because it is too large
Load Diff
1247
wxPython/src/mac/help.cpp
Normal file
1247
wxPython/src/mac/help.cpp
Normal file
File diff suppressed because it is too large
Load Diff
197
wxPython/src/mac/help.py
Normal file
197
wxPython/src/mac/help.py
Normal file
@ -0,0 +1,197 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import helpc
|
||||
|
||||
from windows import *
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
|
||||
# Help events
|
||||
def EVT_HELP(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_HELP, func)
|
||||
|
||||
def EVT_HELP_RANGE(win, id, id2, func):
|
||||
win.Connect(id, id2, wxEVT_HELP, func)
|
||||
|
||||
def EVT_DETAILED_HELP(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_DETAILED_HELP, func)
|
||||
|
||||
def EVT_DETAILED_HELP_RANGE(win, id, id2, func):
|
||||
win.Connect(id, id2, wxEVT_DETAILED_HELP, func)
|
||||
|
||||
def EVT_CONTEXT_MENU(win, func):
|
||||
win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
|
||||
|
||||
class wxHelpEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpEvent_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val)
|
||||
return val
|
||||
def SetPosition(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpEvent_SetPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLink(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpEvent_GetLink,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLink(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpEvent_SetLink,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTarget(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpEvent_GetTarget,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTarget(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpEvent_SetTarget,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHelpEvent instance at %s>" % (self.this,)
|
||||
class wxHelpEvent(wxHelpEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(helpc.new_wxHelpEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxContextMenuEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxContextMenuEvent_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val)
|
||||
return val
|
||||
def SetPosition(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxContextMenuEvent_SetPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxContextMenuEvent instance at %s>" % (self.this,)
|
||||
class wxContextMenuEvent(wxContextMenuEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(helpc.new_wxContextMenuEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxContextHelpPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,helpc=helpc):
|
||||
if self.thisown == 1 :
|
||||
helpc.delete_wxContextHelp(self)
|
||||
def BeginContextHelp(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxContextHelp_BeginContextHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EndContextHelp(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxContextHelp_EndContextHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxContextHelp instance at %s>" % (self.this,)
|
||||
class wxContextHelp(wxContextHelpPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(helpc.new_wxContextHelp,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxContextHelpButtonPtr(wxBitmapButtonPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxContextHelpButton instance at %s>" % (self.this,)
|
||||
class wxContextHelpButton(wxContextHelpButtonPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(helpc.new_wxContextHelpButton,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHelpProviderPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetHelp(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_GetHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowHelp(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_ShowHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddHelp(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_AddHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddHelpById(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_AddHelpById,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHelpProvider instance at %s>" % (self.this,)
|
||||
class wxHelpProvider(wxHelpProviderPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSimpleHelpProviderPtr(wxHelpProviderPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxSimpleHelpProvider instance at %s>" % (self.this,)
|
||||
class wxSimpleHelpProvider(wxSimpleHelpProviderPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(helpc.new_wxSimpleHelpProvider,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
def wxHelpProvider_Set(*_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_Set,_args,_kwargs)
|
||||
if val: val = wxHelpProviderPtr(val)
|
||||
return val
|
||||
|
||||
def wxHelpProvider_Get(*_args, **_kwargs):
|
||||
val = apply(helpc.wxHelpProvider_Get,_args,_kwargs)
|
||||
if val: val = wxHelpProviderPtr(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxFRAME_EX_CONTEXTHELP = helpc.wxFRAME_EX_CONTEXTHELP
|
||||
wxDIALOG_EX_CONTEXTHELP = helpc.wxDIALOG_EX_CONTEXTHELP
|
||||
wxID_CONTEXT_HELP = helpc.wxID_CONTEXT_HELP
|
||||
wxEVT_HELP = helpc.wxEVT_HELP
|
||||
wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP
|
||||
wxEVT_CONTEXT_MENU = helpc.wxEVT_CONTEXT_MENU
|
||||
|
||||
|
||||
#-------------- USER INCLUDE -----------------------
|
||||
|
||||
# Stuff these names into the wx namespace so wxPyConstructObject can find them
|
||||
import wx
|
||||
wx.wxHelpEventPtr = wxHelpEventPtr
|
||||
wx.wxContextMenuEventPtr = wxContextMenuEventPtr
|
6561
wxPython/src/mac/html.cpp
Normal file
6561
wxPython/src/mac/html.cpp
Normal file
File diff suppressed because it is too large
Load Diff
767
wxPython/src/mac/html.py
Normal file
767
wxPython/src/mac/html.py
Normal file
@ -0,0 +1,767 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import htmlc
|
||||
|
||||
from misc import *
|
||||
|
||||
from misc2 import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from events import *
|
||||
|
||||
from streams import *
|
||||
|
||||
from mdi import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from controls2 import *
|
||||
|
||||
from windows2 import *
|
||||
|
||||
from cmndlgs import *
|
||||
|
||||
from windows3 import *
|
||||
|
||||
from image import *
|
||||
|
||||
from printfw import *
|
||||
|
||||
from sizers import *
|
||||
|
||||
from filesys import *
|
||||
|
||||
from utils import *
|
||||
import wx
|
||||
class wxHtmlLinkInfoPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetHref(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlLinkInfo_GetHref,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTarget(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlLinkInfo_GetTarget,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEvent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlLinkInfo_GetEvent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHtmlCell(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlLinkInfo_GetHtmlCell,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlCellPtr(val)
|
||||
return val
|
||||
def SetEvent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlLinkInfo_SetEvent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHtmlCell(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlLinkInfo_SetHtmlCell,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlLinkInfo instance at %s>" % (self.this,)
|
||||
class wxHtmlLinkInfo(wxHtmlLinkInfoPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlLinkInfo,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlTagPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetName(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_GetName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasParam(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_HasParam,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetParam(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_GetParam,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAllParams(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_GetAllParams,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasEnding(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_HasEnding,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBeginPos(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_GetBeginPos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEndPos1(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_GetEndPos1,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEndPos2(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTag_GetEndPos2,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlTag instance at %s>" % (self.this,)
|
||||
class wxHtmlTag(wxHtmlTagPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlParserPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetFS(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_SetFS,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFS(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_GetFS,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Parse(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_Parse,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InitParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_InitParser,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DoneParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_DoneParser,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DoParsing(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_DoParsing,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddTagHandler(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_AddTagHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSource(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_GetSource,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PushTagHandler(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_PushTagHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PopTagHandler(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlParser_PopTagHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlParser instance at %s>" % (self.this,)
|
||||
class wxHtmlParser(wxHtmlParserPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlWinParserPtr(wxHtmlParserPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetDC(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetDC,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDC(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetDC,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCharHeight(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetCharHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCharWidth(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetCharWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindow(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFonts(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetFonts,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetContainer(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetContainer,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContainerCellPtr(val)
|
||||
return val
|
||||
def OpenContainer(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_OpenContainer,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContainerCellPtr(val)
|
||||
return val
|
||||
def SetContainer(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetContainer,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContainerCellPtr(val)
|
||||
return val
|
||||
def CloseContainer(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_CloseContainer,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContainerCellPtr(val)
|
||||
return val
|
||||
def GetFontSize(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetFontSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFontSize(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetFontSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFontBold(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetFontBold,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFontBold(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetFontBold,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFontItalic(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetFontItalic,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFontItalic(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetFontItalic,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFontUnderlined(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetFontUnderlined,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFontUnderlined(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetFontUnderlined,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFontFixed(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetFontFixed,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFontFixed(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetFontFixed,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAlign(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetAlign,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlign(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetAlign,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLinkColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetLinkColor,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def SetLinkColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetLinkColor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetActualColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetActualColor,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def SetActualColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetActualColor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLink(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetLink,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateCurrentFont(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_CreateCurrentFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def GetLink(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetLink,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlLinkInfoPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlWinParser instance at %s>" % (self.this,)
|
||||
class wxHtmlWinParser(wxHtmlWinParserPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlWinParser,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlTagHandlerPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTagHandler__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTagHandler_SetParser,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTagHandler_GetParser,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlParserPtr(val)
|
||||
return val
|
||||
def ParseInner(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlTagHandler_ParseInner,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlTagHandler instance at %s>" % (self.this,)
|
||||
class wxHtmlTagHandler(wxHtmlTagHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlTagHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxHtmlTagHandler)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlWinTagHandlerPtr(wxHtmlTagHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinTagHandler__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinTagHandler_SetParser,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinTagHandler_GetParser,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlWinParserPtr(val)
|
||||
return val
|
||||
def ParseInner(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinTagHandler_ParseInner,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlWinTagHandler instance at %s>" % (self.this,)
|
||||
class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlWinTagHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxHtmlWinTagHandler)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlCellPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPosX(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetPosX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPosY(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetPosY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWidth(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHeight(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDescent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetDescent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLink(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetLink,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlLinkInfoPtr(val)
|
||||
return val
|
||||
def GetNext(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetNext,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlCellPtr(val)
|
||||
return val
|
||||
def GetParent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_GetParent,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContainerCellPtr(val)
|
||||
return val
|
||||
def SetLink(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_SetLink,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetNext(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_SetNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetParent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_SetParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPos(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_SetPos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Layout(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_Layout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Draw(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_Draw,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DrawInvisible(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_DrawInvisible,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Find(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_Find,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlCellPtr(val)
|
||||
return val
|
||||
def AdjustPagebreak(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_AdjustPagebreak,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCanLiveOnPagebreak(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlCell_SetCanLiveOnPagebreak,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlCell instance at %s>" % (self.this,)
|
||||
class wxHtmlCell(wxHtmlCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlWordCellPtr(wxHtmlCellPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlWordCell instance at %s>" % (self.this,)
|
||||
class wxHtmlWordCell(wxHtmlWordCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlWordCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlContainerCellPtr(wxHtmlCellPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def InsertCell(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_InsertCell,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlignHor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetAlignHor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAlignHor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_GetAlignHor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlignVer(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetAlignVer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAlignVer(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_GetAlignVer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetIndent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetIndent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetIndent(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_GetIndent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetIndentUnits(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_GetIndentUnits,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlign(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetAlign,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWidthFloat(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetWidthFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWidthFloatFromTag(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetWidthFloatFromTag,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinHeight(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetMinHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBorder(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_SetBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstCell(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlContainerCell_GetFirstCell,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlCellPtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlContainerCell instance at %s>" % (self.this,)
|
||||
class wxHtmlContainerCell(wxHtmlContainerCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlContainerCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlColourCellPtr(wxHtmlCellPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlColourCell instance at %s>" % (self.this,)
|
||||
class wxHtmlColourCell(wxHtmlColourCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlColourCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlFontCellPtr(wxHtmlCellPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlFontCell instance at %s>" % (self.this,)
|
||||
class wxHtmlFontCell(wxHtmlFontCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlFontCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlWidgetCellPtr(wxHtmlCellPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlWidgetCell instance at %s>" % (self.this,)
|
||||
class wxHtmlWidgetCell(wxHtmlWidgetCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlWidgetCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlWindowPtr(wxScrolledWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPage(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_SetPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LoadPage(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_LoadPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AppendToPage(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_AppendToPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOpenedPage(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_GetOpenedPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOpenedAnchor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_GetOpenedAnchor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOpenedPageTitle(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_GetOpenedPageTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRelatedFrame(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_SetRelatedFrame,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRelatedFrame(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_GetRelatedFrame,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRelatedStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_SetRelatedStatusBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFonts(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_SetFonts,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTitle(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_SetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBorders(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_SetBorders,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadCustomization(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_ReadCustomization,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteCustomization(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_WriteCustomization,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HistoryBack(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_HistoryBack,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HistoryForward(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_HistoryForward,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HistoryCanBack(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_HistoryCanBack,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HistoryCanForward(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_HistoryCanForward,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HistoryClear(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_HistoryClear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetInternalRepresentation(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_GetInternalRepresentation,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContainerCellPtr(val)
|
||||
return val
|
||||
def GetParser(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_GetParser,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlWinParserPtr(val)
|
||||
return val
|
||||
def base_OnLinkClicked(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_base_OnLinkClicked,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnSetTitle(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_base_OnSetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnCellMouseHover(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_base_OnCellMouseHover,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnCellClicked(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWindow_base_OnCellClicked,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlWindow instance at %s>" % (self.this,)
|
||||
class wxHtmlWindow(wxHtmlWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxHtmlWindow)
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlDCRendererPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,htmlc=htmlc):
|
||||
if self.thisown == 1 :
|
||||
htmlc.delete_wxHtmlDCRenderer(self)
|
||||
def SetDC(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlDCRenderer_SetDC,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSize(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlDCRenderer_SetSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHtmlText(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlDCRenderer_SetHtmlText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Render(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlDCRenderer_Render,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTotalHeight(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlDCRenderer_GetTotalHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlDCRenderer instance at %s>" % (self.this,)
|
||||
class wxHtmlDCRenderer(wxHtmlDCRendererPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlDCRenderer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlPrintoutPtr(wxPrintoutPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetHtmlText(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlPrintout_SetHtmlText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHtmlFile(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlPrintout_SetHtmlFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHeader(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlPrintout_SetHeader,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFooter(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlPrintout_SetFooter,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMargins(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlPrintout_SetMargins,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlPrintout instance at %s>" % (self.this,)
|
||||
class wxHtmlPrintout(wxHtmlPrintoutPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlPrintout,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlEasyPrintingPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,htmlc=htmlc):
|
||||
if self.thisown == 1 :
|
||||
htmlc.delete_wxHtmlEasyPrinting(self)
|
||||
def PreviewFile(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_PreviewFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PreviewText(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_PreviewText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrintFile(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_PrintFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrintText(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_PrintText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrinterSetup(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_PrinterSetup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PageSetup(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_PageSetup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHeader(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_SetHeader,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFooter(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_SetFooter,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrintData(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_GetPrintData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPrintDataPtr(val)
|
||||
return val
|
||||
def GetPageSetupData(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlEasyPrinting_GetPageSetupData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPageSetupDialogDataPtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlEasyPrinting instance at %s>" % (self.this,)
|
||||
class wxHtmlEasyPrinting(wxHtmlEasyPrintingPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlc.new_wxHtmlEasyPrinting,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
wxHtmlWinParser_AddTagHandler = htmlc.wxHtmlWinParser_AddTagHandler
|
||||
|
||||
wxHtmlWindow_AddFilter = htmlc.wxHtmlWindow_AddFilter
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxHTML_ALIGN_LEFT = htmlc.wxHTML_ALIGN_LEFT
|
||||
wxHTML_ALIGN_CENTER = htmlc.wxHTML_ALIGN_CENTER
|
||||
wxHTML_ALIGN_RIGHT = htmlc.wxHTML_ALIGN_RIGHT
|
||||
wxHTML_ALIGN_BOTTOM = htmlc.wxHTML_ALIGN_BOTTOM
|
||||
wxHTML_ALIGN_TOP = htmlc.wxHTML_ALIGN_TOP
|
||||
wxHTML_CLR_FOREGROUND = htmlc.wxHTML_CLR_FOREGROUND
|
||||
wxHTML_CLR_BACKGROUND = htmlc.wxHTML_CLR_BACKGROUND
|
||||
wxHTML_UNITS_PIXELS = htmlc.wxHTML_UNITS_PIXELS
|
||||
wxHTML_UNITS_PERCENT = htmlc.wxHTML_UNITS_PERCENT
|
||||
wxHTML_INDENT_LEFT = htmlc.wxHTML_INDENT_LEFT
|
||||
wxHTML_INDENT_RIGHT = htmlc.wxHTML_INDENT_RIGHT
|
||||
wxHTML_INDENT_TOP = htmlc.wxHTML_INDENT_TOP
|
||||
wxHTML_INDENT_BOTTOM = htmlc.wxHTML_INDENT_BOTTOM
|
||||
wxHTML_INDENT_HORIZONTAL = htmlc.wxHTML_INDENT_HORIZONTAL
|
||||
wxHTML_INDENT_VERTICAL = htmlc.wxHTML_INDENT_VERTICAL
|
||||
wxHTML_INDENT_ALL = htmlc.wxHTML_INDENT_ALL
|
||||
wxHTML_COND_ISANCHOR = htmlc.wxHTML_COND_ISANCHOR
|
||||
wxHTML_COND_ISIMAGEMAP = htmlc.wxHTML_COND_ISIMAGEMAP
|
||||
wxHTML_COND_USER = htmlc.wxHTML_COND_USER
|
||||
wxPAGE_ODD = htmlc.wxPAGE_ODD
|
||||
wxPAGE_EVEN = htmlc.wxPAGE_EVEN
|
||||
wxPAGE_ALL = htmlc.wxPAGE_ALL
|
||||
|
||||
|
||||
#-------------- USER INCLUDE -----------------------
|
||||
|
||||
|
||||
# Stuff these names into the wx namespace so wxPyConstructObject can find them
|
||||
import wx
|
||||
wx.wxHtmlTagPtr = wxHtmlTagPtr
|
||||
wx.wxHtmlParserPtr = wxHtmlParserPtr
|
||||
wx.wxHtmlWinParserPtr = wxHtmlWinParserPtr
|
||||
wx.wxHtmlTagHandlerPtr = wxHtmlTagHandlerPtr
|
||||
wx.wxHtmlWinTagHandlerPtr = wxHtmlWinTagHandlerPtr
|
||||
wx.wxHtmlCellPtr = wxHtmlCellPtr
|
||||
wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr
|
||||
wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr
|
||||
wx.wxHtmlWindowPtr = wxHtmlWindowPtr
|
||||
wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr
|
||||
|
2643
wxPython/src/mac/htmlhelp.cpp
Normal file
2643
wxPython/src/mac/htmlhelp.cpp
Normal file
File diff suppressed because it is too large
Load Diff
312
wxPython/src/mac/htmlhelp.py
Normal file
312
wxPython/src/mac/htmlhelp.py
Normal file
@ -0,0 +1,312 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import htmlhelpc
|
||||
|
||||
from misc import *
|
||||
|
||||
from misc2 import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from events import *
|
||||
|
||||
from streams import *
|
||||
|
||||
from mdi import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from controls2 import *
|
||||
|
||||
from windows2 import *
|
||||
|
||||
from cmndlgs import *
|
||||
|
||||
from windows3 import *
|
||||
|
||||
from image import *
|
||||
|
||||
from printfw import *
|
||||
|
||||
from sizers import *
|
||||
|
||||
from filesys import *
|
||||
|
||||
from utils import *
|
||||
class wxHtmlBookRecordPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetTitle(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlBookRecord_GetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStart(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlBookRecord_GetStart,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBasePath(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlBookRecord_GetBasePath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetContentsRange(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlBookRecord_SetContentsRange,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetContentsStart(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsStart,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetContentsEnd(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsEnd,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlBookRecord instance at %s>" % (self.this,)
|
||||
class wxHtmlBookRecord(wxHtmlBookRecordPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlhelpc.new_wxHtmlBookRecord,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlContentsItemPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __setattr__(self,name,value):
|
||||
if name == "m_Level" :
|
||||
htmlhelpc.wxHtmlContentsItem_m_Level_set(self,value)
|
||||
return
|
||||
if name == "m_ID" :
|
||||
htmlhelpc.wxHtmlContentsItem_m_ID_set(self,value)
|
||||
return
|
||||
if name == "m_Name" :
|
||||
htmlhelpc.wxHtmlContentsItem_m_Name_set(self,value)
|
||||
return
|
||||
if name == "m_Page" :
|
||||
htmlhelpc.wxHtmlContentsItem_m_Page_set(self,value)
|
||||
return
|
||||
if name == "m_Book" :
|
||||
htmlhelpc.wxHtmlContentsItem_m_Book_set(self,value.this)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "m_Level" :
|
||||
return htmlhelpc.wxHtmlContentsItem_m_Level_get(self)
|
||||
if name == "m_ID" :
|
||||
return htmlhelpc.wxHtmlContentsItem_m_ID_get(self)
|
||||
if name == "m_Name" :
|
||||
return htmlhelpc.wxHtmlContentsItem_m_Name_get(self)
|
||||
if name == "m_Page" :
|
||||
return htmlhelpc.wxHtmlContentsItem_m_Page_get(self)
|
||||
if name == "m_Book" :
|
||||
return wxHtmlBookRecordPtr(htmlhelpc.wxHtmlContentsItem_m_Book_get(self))
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlContentsItem instance at %s>" % (self.this,)
|
||||
class wxHtmlContentsItem(wxHtmlContentsItemPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlSearchStatusPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Search(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlSearchStatus_Search,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsActive(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlSearchStatus_IsActive,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCurIndex(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlSearchStatus_GetCurIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaxIndex(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlSearchStatus_GetMaxIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetName(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlSearchStatus_GetName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetContentsItem(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlSearchStatus_GetContentsItem,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContentsItemPtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlSearchStatus instance at %s>" % (self.this,)
|
||||
class wxHtmlSearchStatus(wxHtmlSearchStatusPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlHelpDataPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,htmlhelpc=htmlhelpc):
|
||||
if self.thisown == 1 :
|
||||
htmlhelpc.delete_wxHtmlHelpData(self)
|
||||
def SetTempDir(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_SetTempDir,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddBook(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_AddBook,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindPageByName(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_FindPageByName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindPageById(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_FindPageById,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBookRecArray(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_GetBookRecArray,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetContents(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_GetContents,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContentsItemPtr(val)
|
||||
return val
|
||||
def GetContentsCnt(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_GetContentsCnt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetIndex(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_GetIndex,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlContentsItemPtr(val)
|
||||
return val
|
||||
def GetIndexCnt(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpData_GetIndexCnt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlHelpData instance at %s>" % (self.this,)
|
||||
class wxHtmlHelpData(wxHtmlHelpDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlhelpc.new_wxHtmlHelpData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlHelpFramePtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetData(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_GetData,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlHelpDataPtr(val)
|
||||
return val
|
||||
def SetTitleFormat(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_SetTitleFormat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Display(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_Display,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DisplayID(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayID,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DisplayContents(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayContents,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DisplayIndex(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def KeywordSearch(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_KeywordSearch,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def UseConfig(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_UseConfig,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadCustomization(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_ReadCustomization,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteCustomization(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpFrame_WriteCustomization,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlHelpFrame instance at %s>" % (self.this,)
|
||||
class wxHtmlHelpFrame(wxHtmlHelpFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlhelpc.new_wxHtmlHelpFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxHtmlHelpControllerPtr(wxEvtHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,htmlhelpc=htmlhelpc):
|
||||
if self.thisown == 1 :
|
||||
htmlhelpc.delete_wxHtmlHelpController(self)
|
||||
def SetTitleFormat(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_SetTitleFormat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTempDir(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_SetTempDir,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddBook(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_AddBook,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Display(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_Display,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DisplayID(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_DisplayID,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DisplayContents(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_DisplayContents,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DisplayIndex(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_DisplayIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def KeywordSearch(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_KeywordSearch,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def UseConfig(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_UseConfig,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadCustomization(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_ReadCustomization,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteCustomization(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_WriteCustomization,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFrame(self, *_args, **_kwargs):
|
||||
val = apply(htmlhelpc.wxHtmlHelpController_GetFrame,(self,) + _args, _kwargs)
|
||||
if val: val = wxHtmlHelpFramePtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxHtmlHelpController instance at %s>" % (self.this,)
|
||||
class wxHtmlHelpController(wxHtmlHelpControllerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(htmlhelpc.new_wxHtmlHelpController,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxHF_TOOLBAR = htmlhelpc.wxHF_TOOLBAR
|
||||
wxHF_FLATTOOLBAR = htmlhelpc.wxHF_FLATTOOLBAR
|
||||
wxHF_CONTENTS = htmlhelpc.wxHF_CONTENTS
|
||||
wxHF_INDEX = htmlhelpc.wxHF_INDEX
|
||||
wxHF_SEARCH = htmlhelpc.wxHF_SEARCH
|
||||
wxHF_BOOKMARKS = htmlhelpc.wxHF_BOOKMARKS
|
||||
wxHF_OPENFILES = htmlhelpc.wxHF_OPENFILES
|
||||
wxHF_PRINT = htmlhelpc.wxHF_PRINT
|
||||
wxHF_DEFAULTSTYLE = htmlhelpc.wxHF_DEFAULTSTYLE
|
2521
wxPython/src/mac/image.cpp
Normal file
2521
wxPython/src/mac/image.cpp
Normal file
File diff suppressed because it is too large
Load Diff
302
wxPython/src/mac/image.py
Normal file
302
wxPython/src/mac/image.py
Normal file
@ -0,0 +1,302 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import imagec
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
class wxImageHandlerPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetName(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetExtension(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetType(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMimeType(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetName(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetExtension(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetType(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMimeType(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxImageHandler instance at %s>" % (self.this,)
|
||||
class wxImageHandler(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPNGHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxPNGHandler instance at %s>" % (self.this,)
|
||||
class wxPNGHandler(wxPNGHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxJPEGHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxJPEGHandler instance at %s>" % (self.this,)
|
||||
class wxJPEGHandler(wxJPEGHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxBMPHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxBMPHandler instance at %s>" % (self.this,)
|
||||
class wxBMPHandler(wxBMPHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxGIFHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxGIFHandler instance at %s>" % (self.this,)
|
||||
class wxGIFHandler(wxGIFHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPNMHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxPNMHandler instance at %s>" % (self.this,)
|
||||
class wxPNMHandler(wxPNMHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPCXHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxPCXHandler instance at %s>" % (self.this,)
|
||||
class wxPCXHandler(wxPCXHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxTIFFHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxTIFFHandler instance at %s>" % (self.this,)
|
||||
class wxTIFFHandler(wxTIFFHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxTIFFHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxImagePtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,imagec=imagec):
|
||||
if self.thisown == 1 :
|
||||
imagec.delete_wxImage(self)
|
||||
def ConvertToBitmap(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Scale(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Rescale(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val)
|
||||
return val
|
||||
def SetRGB(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRed(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetGreen(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBlue(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LoadFile(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LoadMimeFile(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SaveFile(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SaveMimeFile(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Ok(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWidth(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHeight(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSubImage(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Copy(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Paste(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetData(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetData(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMaskColour(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaskRed(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaskGreen(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaskBlue(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMask(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasMask(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Rotate(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Rotate90(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Mirror(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Replace(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CountColours(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxImage instance at %s>" % (self.this,)
|
||||
class wxImage(wxImagePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(imagec.new_wxImage,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
def wxEmptyImage(*_args, **_kwargs):
|
||||
val = apply(imagec.wxEmptyImage,_args,_kwargs)
|
||||
if val: val = wxImagePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxImageFromMime(*_args, **_kwargs):
|
||||
val = apply(imagec.wxImageFromMime,_args,_kwargs)
|
||||
if val: val = wxImagePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxImageFromBitmap(*_args, **_kwargs):
|
||||
val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
|
||||
if val: val = wxImagePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
|
||||
|
||||
def wxBitmapFromImage(*_args, **_kwargs):
|
||||
val = apply(imagec.wxBitmapFromImage,_args,_kwargs)
|
||||
if val: val = wxBitmapPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
wxImage_CanRead = imagec.wxImage_CanRead
|
||||
|
||||
wxImage_AddHandler = imagec.wxImage_AddHandler
|
||||
|
||||
wxImage_InsertHandler = imagec.wxImage_InsertHandler
|
||||
|
||||
wxImage_RemoveHandler = imagec.wxImage_RemoveHandler
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
cvar = imagec.cvar
|
||||
wxNullImage = wxImagePtr(imagec.cvar.wxNullImage)
|
1139
wxPython/src/mac/mdi.cpp
Normal file
1139
wxPython/src/mac/mdi.cpp
Normal file
File diff suppressed because it is too large
Load Diff
132
wxPython/src/mac/mdi.py
Normal file
132
wxPython/src/mac/mdi.py
Normal file
@ -0,0 +1,132 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import mdic
|
||||
|
||||
from misc import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
class wxMDIParentFramePtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ActivateNext(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_ActivateNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ActivatePrevious(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_ActivatePrevious,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ArrangeIcons(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_ArrangeIcons,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Cascade(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_Cascade,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetActiveChild(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_GetActiveChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientWindow(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_GetClientWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolBar(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_GetToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Tile(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIParentFrame_Tile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMDIParentFrame instance at %s>" % (self.this,)
|
||||
class wxMDIParentFrame(wxMDIParentFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreMDIParentFrame(*_args,**_kwargs):
|
||||
val = wxMDIParentFramePtr(apply(mdic.new_wxPreMDIParentFrame,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxMDIChildFramePtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIChildFrame_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Activate(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIChildFrame_Activate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Maximize(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIChildFrame_Maximize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Restore(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIChildFrame_Restore,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMDIChildFrame instance at %s>" % (self.this,)
|
||||
class wxMDIChildFrame(wxMDIChildFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreMDIChildFrame(*_args,**_kwargs):
|
||||
val = wxMDIChildFramePtr(apply(mdic.new_wxPreMDIChildFrame,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxMDIClientWindowPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(mdic.wxMDIClientWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMDIClientWindow instance at %s>" % (self.this,)
|
||||
class wxMDIClientWindow(wxMDIClientWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreMDIClientWindow(*_args,**_kwargs):
|
||||
val = wxMDIClientWindowPtr(apply(mdic.new_wxPreMDIClientWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
4322
wxPython/src/mac/misc.cpp
Normal file
4322
wxPython/src/mac/misc.cpp
Normal file
File diff suppressed because it is too large
Load Diff
633
wxPython/src/mac/misc.py
Normal file
633
wxPython/src/mac/misc.py
Normal file
@ -0,0 +1,633 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import miscc
|
||||
class wxObjectPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetClassName(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxObject_GetClassName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxObject_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxObject instance at %s>" % (self.this,)
|
||||
class wxObject(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSizePtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxSize(self)
|
||||
def Set(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetX(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetY(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWidth(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHeight(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWidth(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHeight(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def asTuple(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __cmp__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxSize___cmp__,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "x" :
|
||||
miscc.wxSize_x_set(self,value)
|
||||
return
|
||||
if name == "y" :
|
||||
miscc.wxSize_y_set(self,value)
|
||||
return
|
||||
if name == "width" :
|
||||
miscc.wxSize_width_set(self,value)
|
||||
return
|
||||
if name == "height" :
|
||||
miscc.wxSize_height_set(self,value)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "x" :
|
||||
return miscc.wxSize_x_get(self)
|
||||
if name == "y" :
|
||||
return miscc.wxSize_y_get(self)
|
||||
if name == "width" :
|
||||
return miscc.wxSize_width_get(self)
|
||||
if name == "height" :
|
||||
return miscc.wxSize_height_get(self)
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxSize instance at %s>" % (self.this,)
|
||||
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return str(self.asTuple())
|
||||
def __len__(self): return len(self.asTuple())
|
||||
def __getitem__(self, index): return self.asTuple()[index]
|
||||
def __setitem__(self, index, val):
|
||||
if index == 0: self.width = val
|
||||
elif index == 1: self.height = val
|
||||
else: raise IndexError
|
||||
|
||||
class wxSize(wxSizePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxSize,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxRealPointPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxRealPoint(self)
|
||||
def Set(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def asTuple(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __add__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRealPoint___add__,(self,) + _args, _kwargs)
|
||||
if val: val = wxRealPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRealPoint___sub__,(self,) + _args, _kwargs)
|
||||
if val: val = wxRealPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __cmp__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRealPoint___cmp__,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "x" :
|
||||
miscc.wxRealPoint_x_set(self,value)
|
||||
return
|
||||
if name == "y" :
|
||||
miscc.wxRealPoint_y_set(self,value)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "x" :
|
||||
return miscc.wxRealPoint_x_get(self)
|
||||
if name == "y" :
|
||||
return miscc.wxRealPoint_y_get(self)
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxRealPoint instance at %s>" % (self.this,)
|
||||
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return str(self.asTuple())
|
||||
def __len__(self): return len(self.asTuple())
|
||||
def __getitem__(self, index): return self.asTuple()[index]
|
||||
def __setitem__(self, index, val):
|
||||
if index == 0: self.width = val
|
||||
elif index == 1: self.height = val
|
||||
else: raise IndexError
|
||||
|
||||
class wxRealPoint(wxRealPointPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPointPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxPoint(self)
|
||||
def Set(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def asTuple(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __add__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxPoint___add__,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxPoint___sub__,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __cmp__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxPoint___cmp__,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "x" :
|
||||
miscc.wxPoint_x_set(self,value)
|
||||
return
|
||||
if name == "y" :
|
||||
miscc.wxPoint_y_set(self,value)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "x" :
|
||||
return miscc.wxPoint_x_get(self)
|
||||
if name == "y" :
|
||||
return miscc.wxPoint_y_get(self)
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxPoint instance at %s>" % (self.this,)
|
||||
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return str(self.asTuple())
|
||||
def __len__(self): return len(self.asTuple())
|
||||
def __getitem__(self, index): return self.asTuple()[index]
|
||||
def __setitem__(self, index, val):
|
||||
if index == 0: self.x = val
|
||||
elif index == 1: self.y = val
|
||||
else: raise IndexError
|
||||
|
||||
class wxPoint(wxPointPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxPoint,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxRectPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxRect(self)
|
||||
def GetX(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetX(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetY(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetY(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWidth(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWidth(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHeight(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHeight(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetSize(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetLeft(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTop(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBottom(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRight(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLeft(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetLeft,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRight(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetRight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTop(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBottom(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Inflate(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Inside(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def asTuple(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __add__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect___add__,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __cmp__(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxRect___cmp__,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "x" :
|
||||
miscc.wxRect_x_set(self,value)
|
||||
return
|
||||
if name == "y" :
|
||||
miscc.wxRect_y_set(self,value)
|
||||
return
|
||||
if name == "width" :
|
||||
miscc.wxRect_width_set(self,value)
|
||||
return
|
||||
if name == "height" :
|
||||
miscc.wxRect_height_set(self,value)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "x" :
|
||||
return miscc.wxRect_x_get(self)
|
||||
if name == "y" :
|
||||
return miscc.wxRect_y_get(self)
|
||||
if name == "width" :
|
||||
return miscc.wxRect_width_get(self)
|
||||
if name == "height" :
|
||||
return miscc.wxRect_height_get(self)
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxRect instance at %s>" % (self.this,)
|
||||
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return str(self.asTuple())
|
||||
def __len__(self): return len(self.asTuple())
|
||||
def __getitem__(self, index): return self.asTuple()[index]
|
||||
def __setitem__(self, index, val):
|
||||
if index == 0: self.x = val
|
||||
elif index == 1: self.y = val
|
||||
elif index == 2: self.width = val
|
||||
elif index == 3: self.height = val
|
||||
else: raise IndexError
|
||||
|
||||
# override the __getattr__ made by SWIG
|
||||
def __getattr__(self, name):
|
||||
d = {
|
||||
'x' : miscc.wxRect_x_get,
|
||||
'y' : miscc.wxRect_y_get,
|
||||
'width' : miscc.wxRect_width_get,
|
||||
'height' : miscc.wxRect_height_get,
|
||||
'top' : miscc.wxRect_GetTop,
|
||||
'bottom' : miscc.wxRect_GetBottom,
|
||||
'left' : miscc.wxRect_GetLeft,
|
||||
'right' : miscc.wxRect_GetRight,
|
||||
}
|
||||
try:
|
||||
func = d[name]
|
||||
except KeyError:
|
||||
raise AttributeError,name
|
||||
return func(self)
|
||||
|
||||
# and also the __setattr__
|
||||
def __setattr__(self, name, value):
|
||||
d = {
|
||||
'x' : miscc.wxRect_x_set,
|
||||
'y' : miscc.wxRect_y_set,
|
||||
'width' : miscc.wxRect_width_set,
|
||||
'height' : miscc.wxRect_height_set,
|
||||
'top' : miscc.wxRect_SetTop,
|
||||
'bottom' : miscc.wxRect_SetBottom,
|
||||
'left' : miscc.wxRect_SetLeft,
|
||||
'right' : miscc.wxRect_SetRight,
|
||||
}
|
||||
try:
|
||||
func = d[name]
|
||||
except KeyError:
|
||||
self.__dict__[name] = value
|
||||
return
|
||||
func(self, value)
|
||||
|
||||
class wxRect(wxRectPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxRect,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxIndividualLayoutConstraintPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Above(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Absolute(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AsIs(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Below(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Unconstrained(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LeftOf(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PercentOf(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RightOf(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SameAs(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Set(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
|
||||
class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxLayoutConstraintsPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __setattr__(self,name,value):
|
||||
if name == "bottom" :
|
||||
miscc.wxLayoutConstraints_bottom_set(self,value.this)
|
||||
return
|
||||
if name == "centreX" :
|
||||
miscc.wxLayoutConstraints_centreX_set(self,value.this)
|
||||
return
|
||||
if name == "centreY" :
|
||||
miscc.wxLayoutConstraints_centreY_set(self,value.this)
|
||||
return
|
||||
if name == "height" :
|
||||
miscc.wxLayoutConstraints_height_set(self,value.this)
|
||||
return
|
||||
if name == "left" :
|
||||
miscc.wxLayoutConstraints_left_set(self,value.this)
|
||||
return
|
||||
if name == "right" :
|
||||
miscc.wxLayoutConstraints_right_set(self,value.this)
|
||||
return
|
||||
if name == "top" :
|
||||
miscc.wxLayoutConstraints_top_set(self,value.this)
|
||||
return
|
||||
if name == "width" :
|
||||
miscc.wxLayoutConstraints_width_set(self,value.this)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "bottom" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
|
||||
if name == "centreX" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
|
||||
if name == "centreY" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
|
||||
if name == "height" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
|
||||
if name == "left" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
|
||||
if name == "right" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
|
||||
if name == "top" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
|
||||
if name == "width" :
|
||||
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxLayoutConstraints instance at %s>" % (self.this,)
|
||||
class wxLayoutConstraints(wxLayoutConstraintsPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxAcceleratorEntryPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxAcceleratorEntry(self)
|
||||
def Set(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFlags(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetKeyCode(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCommand(self, *_args, **_kwargs):
|
||||
val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
|
||||
class wxAcceleratorEntry(wxAcceleratorEntryPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxAcceleratorTablePtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxAcceleratorTable(self)
|
||||
def __repr__(self):
|
||||
return "<C wxAcceleratorTable instance at %s>" % (self.this,)
|
||||
class wxAcceleratorTable(wxAcceleratorTablePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxBusyInfoPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,miscc=miscc):
|
||||
if self.thisown == 1 :
|
||||
miscc.delete_wxBusyInfo(self)
|
||||
def __repr__(self):
|
||||
return "<C wxBusyInfo instance at %s>" % (self.this,)
|
||||
class wxBusyInfo(wxBusyInfoPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
wxIntersectRect = miscc.wxIntersectRect
|
||||
|
||||
wxNewId = miscc.wxNewId
|
||||
|
||||
wxRegisterId = miscc.wxRegisterId
|
||||
|
||||
NewId = miscc.NewId
|
||||
|
||||
RegisterId = miscc.RegisterId
|
||||
|
||||
wxGetCurrentId = miscc.wxGetCurrentId
|
||||
|
||||
wxBell = miscc.wxBell
|
||||
|
||||
wxEndBusyCursor = miscc.wxEndBusyCursor
|
||||
|
||||
wxGetElapsedTime = miscc.wxGetElapsedTime
|
||||
|
||||
wxGetMousePosition = miscc.wxGetMousePosition
|
||||
|
||||
wxIsBusy = miscc.wxIsBusy
|
||||
|
||||
wxNow = miscc.wxNow
|
||||
|
||||
wxShell = miscc.wxShell
|
||||
|
||||
wxStartTimer = miscc.wxStartTimer
|
||||
|
||||
wxGetOsVersion = miscc.wxGetOsVersion
|
||||
|
||||
wxGetOsDescription = miscc.wxGetOsDescription
|
||||
|
||||
wxSleep = miscc.wxSleep
|
||||
|
||||
wxUsleep = miscc.wxUsleep
|
||||
|
||||
wxYield = miscc.wxYield
|
||||
|
||||
wxYieldIfNeeded = miscc.wxYieldIfNeeded
|
||||
|
||||
wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
|
||||
|
||||
wxGetResource = miscc.wxGetResource
|
||||
|
||||
wxStripMenuCodes = miscc.wxStripMenuCodes
|
||||
|
||||
wxGetEmailAddress = miscc.wxGetEmailAddress
|
||||
|
||||
wxGetHostName = miscc.wxGetHostName
|
||||
|
||||
wxGetFullHostName = miscc.wxGetFullHostName
|
||||
|
||||
wxGetUserId = miscc.wxGetUserId
|
||||
|
||||
wxGetUserName = miscc.wxGetUserName
|
||||
|
||||
wxGetHomeDir = miscc.wxGetHomeDir
|
||||
|
||||
def wxGetAccelFromString(*_args, **_kwargs):
|
||||
val = apply(miscc.wxGetAccelFromString,_args,_kwargs)
|
||||
if val: val = wxAcceleratorEntryPtr(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxLeft = miscc.wxLeft
|
||||
wxTop = miscc.wxTop
|
||||
wxRight = miscc.wxRight
|
||||
wxBottom = miscc.wxBottom
|
||||
wxWidth = miscc.wxWidth
|
||||
wxHeight = miscc.wxHeight
|
||||
wxCentre = miscc.wxCentre
|
||||
wxCenter = miscc.wxCenter
|
||||
wxCentreX = miscc.wxCentreX
|
||||
wxCentreY = miscc.wxCentreY
|
||||
wxUnconstrained = miscc.wxUnconstrained
|
||||
wxAsIs = miscc.wxAsIs
|
||||
wxPercentOf = miscc.wxPercentOf
|
||||
wxAbove = miscc.wxAbove
|
||||
wxBelow = miscc.wxBelow
|
||||
wxLeftOf = miscc.wxLeftOf
|
||||
wxRightOf = miscc.wxRightOf
|
||||
wxSameAs = miscc.wxSameAs
|
||||
wxAbsolute = miscc.wxAbsolute
|
||||
cvar = miscc.cvar
|
||||
wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)
|
7823
wxPython/src/mac/misc2.cpp
Normal file
7823
wxPython/src/mac/misc2.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1032
wxPython/src/mac/misc2.py
Normal file
1032
wxPython/src/mac/misc2.py
Normal file
File diff suppressed because it is too large
Load Diff
5432
wxPython/src/mac/printfw.cpp
Normal file
5432
wxPython/src/mac/printfw.cpp
Normal file
File diff suppressed because it is too large
Load Diff
582
wxPython/src/mac/printfw.py
Normal file
582
wxPython/src/mac/printfw.py
Normal file
@ -0,0 +1,582 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import printfwc
|
||||
|
||||
from misc import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from cmndlgs import *
|
||||
|
||||
from events import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
import wx
|
||||
class wxPrintDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,printfwc=printfwc):
|
||||
if self.thisown == 1 :
|
||||
printfwc.delete_wxPrintData(self)
|
||||
def GetNoCopies(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetNoCopies,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCollate(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetCollate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterName(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColour(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDuplex(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetDuplex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPaperId(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPaperId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPaperSize(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPaperSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val)
|
||||
return val
|
||||
def GetQuality(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetQuality,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetNoCopies(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetNoCopies,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCollate(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetCollate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterName(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColour(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDuplex(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetDuplex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPaperId(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPaperId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPaperSize(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPaperSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetQuality(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetQuality,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterCommand(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterCommand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterOptions(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterOptions,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPreviewCommand(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPreviewCommand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFilename(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetFilename,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFontMetricPath(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetFontMetricPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterScaleX(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterScaleX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterScaleY(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterScaleY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterTranslateX(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterTranslateX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrinterTranslateY(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrinterTranslateY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrintMode(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_GetPrintMode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterCommand(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterCommand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterOptions(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterOptions,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPreviewCommand(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPreviewCommand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFilename(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetFilename,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFontMetricPath(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetFontMetricPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterScaleX(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterScaleX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterScaleY(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterScaleY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterScaling(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterScaling,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterTranslateX(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterTranslateX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterTranslateY(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterTranslateY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrinterTranslation(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrinterTranslation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrintMode(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintData_SetPrintMode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrintData instance at %s>" % (self.this,)
|
||||
class wxPrintData(wxPrintDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrintData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPageSetupDialogDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,printfwc=printfwc):
|
||||
if self.thisown == 1 :
|
||||
printfwc.delete_wxPageSetupDialogData(self)
|
||||
def EnableHelp(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_EnableHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableMargins(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_EnableMargins,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableOrientation(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_EnableOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnablePaper(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_EnablePaper,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnablePrinter(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_EnablePrinter,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDefaultMinMargins(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetDefaultMinMargins,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEnableMargins(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetEnableMargins,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEnableOrientation(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetEnableOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEnablePaper(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetEnablePaper,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEnablePrinter(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetEnablePrinter,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEnableHelp(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetEnableHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDefaultInfo(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetDefaultInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMarginTopLeft(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetMarginTopLeft,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetMarginBottomRight(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetMarginBottomRight,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetMinMarginTopLeft(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetMinMarginTopLeft,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetMinMarginBottomRight(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetMinMarginBottomRight,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetPaperId(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetPaperId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPaperSize(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetPaperSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetPrintData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_GetPrintData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPrintDataPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetDefaultInfo(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetDefaultInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefaultMinMargins(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetDefaultMinMargins,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMarginTopLeft(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetMarginTopLeft,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMarginBottomRight(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetMarginBottomRight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinMarginTopLeft(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetMinMarginTopLeft,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinMarginBottomRight(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetMinMarginBottomRight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPaperId(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetPaperId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPaperSize(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetPaperSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrintData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialogData_SetPrintData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPageSetupDialogData instance at %s>" % (self.this,)
|
||||
class wxPageSetupDialogData(wxPageSetupDialogDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPageSetupDialogData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPageSetupDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPageSetupData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialog_GetPageSetupData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPageSetupDialogDataPtr(val)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPageSetupDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPageSetupDialog instance at %s>" % (self.this,)
|
||||
class wxPageSetupDialog(wxPageSetupDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPageSetupDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPrintDialogDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,printfwc=printfwc):
|
||||
if self.thisown == 1 :
|
||||
printfwc.delete_wxPrintDialogData(self)
|
||||
def EnableHelp(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_EnableHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnablePageNumbers(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_EnablePageNumbers,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnablePrintToFile(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_EnablePrintToFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableSelection(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_EnableSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAllPages(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetAllPages,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCollate(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetCollate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFromPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetFromPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaxPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetMaxPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetMinPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNoCopies(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetNoCopies,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrintData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetPrintData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPrintDataPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetPrintToFile(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetPrintToFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_GetToPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCollate(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetCollate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFromPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetFromPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMaxPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetMaxPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetMinPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetNoCopies(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetNoCopies,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrintData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetPrintData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrintToFile(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetPrintToFile,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSetupDialog(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetSetupDialog,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialogData_SetToPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrintDialogData instance at %s>" % (self.this,)
|
||||
class wxPrintDialogData(wxPrintDialogDataPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrintDialogData,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPrintDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPrintDialogData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialog_GetPrintDialogData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPrintDialogDataPtr(val)
|
||||
return val
|
||||
def GetPrintDC(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialog_GetPrintDC,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrintDialog instance at %s>" % (self.this,)
|
||||
class wxPrintDialog(wxPrintDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrintDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPrintoutPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDC(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_GetDC,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPageSizeMM(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_GetPageSizeMM,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPageSizePixels(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_GetPageSizePixels,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPPIPrinter(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_GetPPIPrinter,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPPIScreen(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_GetPPIScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsPreview(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_IsPreview,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnBeginDocument(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_OnBeginDocument,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnEndDocument(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_OnEndDocument,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnBeginPrinting(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_OnBeginPrinting,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnEndPrinting(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_OnEndPrinting,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_OnPreparePrinting(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_OnPreparePrinting,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_GetPageInfo(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_GetPageInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_HasPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintout_base_HasPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrintout instance at %s>" % (self.this,)
|
||||
class wxPrintout(wxPrintoutPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrintout,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxPrintout)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPrinterPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,printfwc=printfwc):
|
||||
if self.thisown == 1 :
|
||||
printfwc.delete_wxPrinter(self)
|
||||
def CreateAbortWindow(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrinter_CreateAbortWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrintDialogData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrinter_GetPrintDialogData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPrintDialogDataPtr(val)
|
||||
return val
|
||||
def Print(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrinter_Print,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrintDialog(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrinter_PrintDialog,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReportError(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrinter_ReportError,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Setup(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrinter_Setup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrinter instance at %s>" % (self.this,)
|
||||
class wxPrinter(wxPrinterPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrinter,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPrintPreviewPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetCanvas(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetCanvas,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCurrentPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetCurrentPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFrame(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetFrame,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaxPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetMaxPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetMinPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrintDialogData(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetPrintDialogData,(self,) + _args, _kwargs)
|
||||
if val: val = wxPrintDialogDataPtr(val)
|
||||
return val
|
||||
def GetPrintout(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetPrintout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrintoutForPrinting(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetPrintoutForPrinting,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetZoom(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_GetZoom,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Ok(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_Ok,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Print(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_Print,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCanvas(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_SetCanvas,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCurrentPage(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_SetCurrentPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFrame(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_SetFrame,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrintout(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_SetPrintout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetZoom(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPrintPreview_SetZoom,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrintPreview instance at %s>" % (self.this,)
|
||||
class wxPrintPreview(wxPrintPreviewPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrintPreview,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPreviewFramePtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Initialize(self, *_args, **_kwargs):
|
||||
val = apply(printfwc.wxPreviewFrame_Initialize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPreviewFrame instance at %s>" % (self.this,)
|
||||
class wxPreviewFrame(wxPreviewFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPreviewFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
3109
wxPython/src/mac/sizers.cpp
Normal file
3109
wxPython/src/mac/sizers.cpp
Normal file
File diff suppressed because it is too large
Load Diff
425
wxPython/src/mac/sizers.py
Normal file
425
wxPython/src/mac/sizers.py
Normal file
@ -0,0 +1,425 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import sizersc
|
||||
|
||||
from misc import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
import string
|
||||
class wxSizerItemPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetDimension(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetDimension,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRatioWH(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetRatioWH,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRatioSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetRatioSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRatio(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetRatio,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRatio(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetRatio,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_IsWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_IsSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSpacer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_IsSpacer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOption(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetOption,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFlag(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetFlag,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBorder(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetInitSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetInitSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetOption(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetOption,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFlag(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetFlag,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBorder(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetUserData(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetUserData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSizerItem instance at %s>" % (self.this,)
|
||||
class wxSizerItem(wxSizerItemPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSizerPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setOORInfo(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer__setOORInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_AddWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_AddSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddSpacer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_AddSpacer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_InsertWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_InsertSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertSpacer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_InsertSpacer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrependWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_PrependWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrependSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_PrependSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrependSpacer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_PrependSpacer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_RemoveWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_RemoveSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemovePos(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_RemovePos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDimension(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_SetDimension,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_SetMinSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetItemMinSizeWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_SetItemMinSizeWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetItemMinSizeSizer(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_SetItemMinSizeSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetItemMinSizePos(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_SetItemMinSizePos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_GetSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetMinSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_GetMinSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Layout(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_Layout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Fit(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSizeHints(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_SetSizeHints,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetChildren(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizer_GetChildren,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSizer instance at %s>" % (self.this,)
|
||||
|
||||
def Add(self, *args, **kw):
|
||||
if type(args[0]) == type(1):
|
||||
apply(self.AddSpacer, args, kw)
|
||||
elif string.find(args[0].this, 'Sizer') != -1:
|
||||
apply(self.AddSizer, args, kw)
|
||||
else:
|
||||
apply(self.AddWindow, args, kw)
|
||||
|
||||
def Insert(self, *args, **kw):
|
||||
if type(args[1]) == type(1):
|
||||
apply(self.InsertSpacer, args, kw)
|
||||
elif string.find(args[1].this, 'Sizer') != -1:
|
||||
apply(self.InsertSizer, args, kw)
|
||||
else:
|
||||
apply(self.InsertWindow, args, kw)
|
||||
|
||||
def Prepend(self, *args, **kw):
|
||||
if type(args[0]) == type(1):
|
||||
apply(self.PrependSpacer, args, kw)
|
||||
elif string.find(args[0].this, 'Sizer') != -1:
|
||||
apply(self.PrependSizer, args, kw)
|
||||
else:
|
||||
apply(self.PrependWindow, args, kw)
|
||||
|
||||
def Remove(self, *args, **kw):
|
||||
if type(args[0]) == type(1):
|
||||
apply(self.RemovePos, args, kw)
|
||||
elif string.find(args[0].this, 'Sizer') != -1:
|
||||
apply(self.RemoveSizer, args, kw)
|
||||
else:
|
||||
apply(self.RemoveWindow, args, kw)
|
||||
|
||||
def AddMany(self, widgets):
|
||||
for childinfo in widgets:
|
||||
if type(childinfo) != type(()):
|
||||
childinfo = (childinfo, )
|
||||
apply(self.Add, childinfo)
|
||||
|
||||
|
||||
def SetItemMinSize(self, *args):
|
||||
if type(args[0]) == type(1):
|
||||
apply(self.SetItemMinSizePos, args)
|
||||
elif string.find(args[0].this, 'Sizer') != -1:
|
||||
apply(self.SetItemMinSizeSizer, args)
|
||||
else:
|
||||
apply(self.SetItemMinSizeWindow, args)
|
||||
|
||||
class wxSizer(wxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPySizerPtr(wxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxPySizer__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPySizer instance at %s>" % (self.this,)
|
||||
class wxPySizer(wxPySizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxPySizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxPySizer)
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxBoxSizerPtr(wxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxBoxSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxBoxSizer instance at %s>" % (self.this,)
|
||||
class wxBoxSizer(wxBoxSizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxBoxSizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxStaticBoxSizerPtr(wxBoxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetStaticBox(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxStaticBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxStaticBoxSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxStaticBoxSizer instance at %s>" % (self.this,)
|
||||
class wxStaticBoxSizer(wxStaticBoxSizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxStaticBoxSizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxNotebookSizerPtr(wxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxNotebookSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxNotebookSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetNotebook(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxNotebookSizer_GetNotebook,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxNotebookSizer instance at %s>" % (self.this,)
|
||||
class wxNotebookSizer(wxNotebookSizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxNotebookSizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxGridSizerPtr(wxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetCols(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_SetCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRows(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_SetRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetVGap(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_SetVGap,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHGap(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_SetHGap,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCols(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_GetCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRows(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_GetRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetVGap(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_GetVGap,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHGap(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxGridSizer_GetHGap,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxGridSizer instance at %s>" % (self.this,)
|
||||
class wxGridSizer(wxGridSizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxGridSizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFlexGridSizerPtr(wxGridSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxFlexGridSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxFlexGridSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def AddGrowableRow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxFlexGridSizer_AddGrowableRow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveGrowableRow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxFlexGridSizer_RemoveGrowableRow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddGrowableCol(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxFlexGridSizer_AddGrowableCol,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveGrowableCol(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxFlexGridSizer_RemoveGrowableCol,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFlexGridSizer instance at %s>" % (self.this,)
|
||||
class wxFlexGridSizer(wxFlexGridSizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxFlexGridSizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
3660
wxPython/src/mac/stattool.cpp
Normal file
3660
wxPython/src/mac/stattool.cpp
Normal file
File diff suppressed because it is too large
Load Diff
363
wxPython/src/mac/stattool.py
Normal file
363
wxPython/src/mac/stattool.py
Normal file
@ -0,0 +1,363 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import stattoolc
|
||||
|
||||
from misc import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
class wxStatusBarPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFieldRect(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetFieldRect,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetFieldsCount(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetFieldsCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStatusText(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBorderX(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetBorderX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBorderY(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetBorderY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFieldsCount(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStatusText(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetStatusText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStatusWidths(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinHeight(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetMinHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxStatusBar instance at %s>" % (self.this,)
|
||||
class wxStatusBar(wxStatusBarPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreStatusBar(*_args,**_kwargs):
|
||||
val = wxStatusBarPtr(apply(stattoolc.new_wxPreStatusBar,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxToolBarToolBasePtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetId(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetControl(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetControl,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolBar(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsButton(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_IsButton,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsControl(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_IsControl,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSeparator(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_IsSeparator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStyle(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEnabled(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_IsEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsToggled(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_IsToggled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CanBeToggled(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_CanBeToggled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBitmap1(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetBitmap1,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val)
|
||||
return val
|
||||
def GetBitmap2(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetBitmap2,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val)
|
||||
return val
|
||||
def GetBitmap(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetBitmap,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val)
|
||||
return val
|
||||
def GetShortHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetShortHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLongHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetLongHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Enable(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_Enable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Toggle(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_Toggle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToggle(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_SetToggle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetShortHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_SetShortHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLongHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_SetLongHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBitmap1(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_SetBitmap1,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBitmap2(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_SetBitmap2,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Detach(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_Detach,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Attach(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_Attach,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientData(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_GetClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetClientData(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarToolBase_SetClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxToolBarToolBase instance at %s>" % (self.this,)
|
||||
class wxToolBarToolBase(wxToolBarToolBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxToolBarBasePtr(wxControlPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def AddTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_AddTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddSimpleTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_AddSimpleTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_InsertTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertSimpleTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_InsertSimpleTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddControl(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_AddControl,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertControl(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_InsertControl,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddSeparator(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_AddSeparator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertSeparator(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_InsertSeparator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_RemoveTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteToolByPos(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_DeleteToolByPos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_DeleteTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ClearTools(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_ClearTools,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Realize(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_Realize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_EnableTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ToggleTool(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_ToggleTool,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToggle(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToggle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolClientData(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolClientData(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToolClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolState(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolState,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolEnabled(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolShortHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToolShortHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolShortHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolShortHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolLongHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToolLongHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolLongHelp(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolLongHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMarginsXY(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetMarginsXY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMargins(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetMargins,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolPacking(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToolPacking,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolSeparation(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToolSeparation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolMargins(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolMargins,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetMargins(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetMargins,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetToolPacking(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolPacking,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolSeparation(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolSeparation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRows(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMaxRowsCols(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetMaxRowsCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaxRows(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetMaxRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaxCols(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetMaxCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolBitmapSize(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_SetToolBitmapSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolBitmapSize(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolBitmapSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetToolSize(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarBase_GetToolSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxToolBarBase instance at %s>" % (self.this,)
|
||||
class wxToolBarBase(wxToolBarBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxToolBarPtr(wxToolBarBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBar_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindToolForPosition(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBar_FindToolForPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxToolBar instance at %s>" % (self.this,)
|
||||
class wxToolBar(wxToolBarPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreToolBar(*_args,**_kwargs):
|
||||
val = wxToolBarPtr(apply(stattoolc.new_wxPreToolBar,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxToolBarSimplePtr(wxToolBarBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarSimple_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindToolForPosition(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxToolBarSimple_FindToolForPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxToolBarSimple instance at %s>" % (self.this,)
|
||||
class wxToolBarSimple(wxToolBarSimplePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(stattoolc.new_wxToolBarSimple,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreToolBarSimple(*_args,**_kwargs):
|
||||
val = wxToolBarSimplePtr(apply(stattoolc.new_wxPreToolBarSimple,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxTOOL_STYLE_BUTTON = stattoolc.wxTOOL_STYLE_BUTTON
|
||||
wxTOOL_STYLE_SEPARATOR = stattoolc.wxTOOL_STYLE_SEPARATOR
|
||||
wxTOOL_STYLE_CONTROL = stattoolc.wxTOOL_STYLE_CONTROL
|
851
wxPython/src/mac/streams.cpp
Normal file
851
wxPython/src/mac/streams.cpp
Normal file
@ -0,0 +1,851 @@
|
||||
/*
|
||||
* FILE : src/mac/streams.cpp
|
||||
*
|
||||
* This file was automatically generated by :
|
||||
* Simplified Wrapper and Interface Generator (SWIG)
|
||||
* Version 1.1 (Build 883)
|
||||
*
|
||||
* Portions Copyright (c) 1995-1998
|
||||
* The University of Utah and The Regents of the University of California.
|
||||
* Permission is granted to distribute this file in any manner provided
|
||||
* this notice remains intact.
|
||||
*
|
||||
* Do not make changes to this file--changes will be lost!
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#define SWIGCODE
|
||||
/* Implementation : PYTHON */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
/* Definitions for Windows/Unix exporting */
|
||||
#if defined(__WIN32__)
|
||||
# if defined(_MSC_VER)
|
||||
# define SWIGEXPORT(a) __declspec(dllexport) a
|
||||
# else
|
||||
# if defined(__BORLANDC__)
|
||||
# define SWIGEXPORT(a) a _export
|
||||
# else
|
||||
# define SWIGEXPORT(a) a
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define SWIGEXPORT(a) a
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void SWIG_MakePtr(char *, void *, char *);
|
||||
extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
|
||||
extern char *SWIG_GetPtr(char *, void **, char *);
|
||||
extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
|
||||
extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
||||
extern PyObject *SWIG_newvarlink(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#define SWIG_init initstreamsc
|
||||
|
||||
#define SWIG_name "streamsc"
|
||||
|
||||
#include "helpers.h"
|
||||
#include <wx/stream.h>
|
||||
#include <wx/list.h>
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
static char* wxStringErrorMsg = "String or Unicode type required";
|
||||
#else
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
// C++
|
||||
// definitions of wxStringPtrList and wxPyInputStream
|
||||
#include <wx/listimpl.cpp>
|
||||
WX_DEFINE_LIST(wxStringPtrList);
|
||||
|
||||
|
||||
void wxPyInputStream::close() {
|
||||
/* do nothing */
|
||||
}
|
||||
|
||||
void wxPyInputStream::flush() {
|
||||
/*do nothing*/
|
||||
}
|
||||
|
||||
bool wxPyInputStream::eof() {
|
||||
if (wxi)
|
||||
return wxi->Eof();
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
wxPyInputStream::~wxPyInputStream() {
|
||||
/*do nothing*/
|
||||
}
|
||||
|
||||
wxString* wxPyInputStream::read(int size) {
|
||||
wxString* s = NULL;
|
||||
const int BUFSIZE = 1024;
|
||||
|
||||
// check if we have a real wxInputStream to work with
|
||||
if (!wxi) {
|
||||
PyErr_SetString(PyExc_IOError,"no valid C-wxInputStream below");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (size < 0) {
|
||||
// init buffers
|
||||
char * buf = new char[BUFSIZE];
|
||||
if (!buf) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
s = new wxString();
|
||||
if (!s) {
|
||||
delete buf;
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// read until EOF
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
while (! wxi->Eof()) {
|
||||
wxi->Read(buf, BUFSIZE);
|
||||
//*s += wxString(buf, wxi->LastRead());
|
||||
s->Append(buf, wxi->LastRead());
|
||||
}
|
||||
delete buf;
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
|
||||
// error check
|
||||
if (wxi->LastError() == wxSTREAM_READ_ERROR) {
|
||||
delete s;
|
||||
PyErr_SetString(PyExc_IOError,"IOError in wxInputStream");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
} else { // Read only size number of characters
|
||||
s = new wxString;
|
||||
if (!s) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// read size bytes
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxi->Read(s->GetWriteBuf(size+1), size);
|
||||
s->UngetWriteBuf(wxi->LastRead());
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
|
||||
// error check
|
||||
if (wxi->LastError() == wxSTREAM_READ_ERROR) {
|
||||
delete s;
|
||||
PyErr_SetString(PyExc_IOError,"IOError in wxInputStream");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
wxString* wxPyInputStream::readline (int size) {
|
||||
// check if we have a real wxInputStream to work with
|
||||
if (!wxi) {
|
||||
PyErr_SetString(PyExc_IOError,"no valid C-wxInputStream below");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// init buffer
|
||||
int i;
|
||||
char ch;
|
||||
wxString* s = new wxString;
|
||||
if (!s) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// read until \n or byte limit reached
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
for (i=ch=0; (ch != '\n') && (!wxi->Eof()) && ((size < 0) || (i < size)); i++) {
|
||||
*s += ch = wxi->GetC();
|
||||
}
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
|
||||
// errorcheck
|
||||
if (wxi->LastError() == wxSTREAM_READ_ERROR) {
|
||||
delete s;
|
||||
PyErr_SetString(PyExc_IOError,"IOError in wxInputStream");
|
||||
return NULL;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
wxStringPtrList* wxPyInputStream::readlines (int sizehint) {
|
||||
// check if we have a real wxInputStream to work with
|
||||
if (!wxi) {
|
||||
PyErr_SetString(PyExc_IOError,"no valid C-wxInputStream below");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// init list
|
||||
wxStringPtrList* l = new wxStringPtrList();
|
||||
if (!l) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// read sizehint bytes or until EOF
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
int i;
|
||||
for (i=0; (!wxi->Eof()) && ((sizehint < 0) || (i < sizehint));) {
|
||||
wxString* s = readline();
|
||||
if (s == NULL) {
|
||||
l->DeleteContents(TRUE);
|
||||
l->Clear();
|
||||
return NULL;
|
||||
}
|
||||
l->Append(s);
|
||||
i = i + s->Length();
|
||||
}
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
|
||||
// error check
|
||||
if (wxi->LastError() == wxSTREAM_READ_ERROR) {
|
||||
l->DeleteContents(TRUE);
|
||||
l->Clear();
|
||||
PyErr_SetString(PyExc_IOError,"IOError in wxInputStream");
|
||||
return NULL;
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
|
||||
void wxPyInputStream::seek(int offset, int whence) {
|
||||
if (wxi)
|
||||
wxi->SeekI(offset, wxSeekMode(whence));
|
||||
}
|
||||
|
||||
int wxPyInputStream::tell(){
|
||||
if (wxi)
|
||||
return wxi->TellI();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// wxInputStream which operates on a Python file-like object
|
||||
class wxPyCBInputStream : public wxInputStream {
|
||||
protected:
|
||||
PyObject* read;
|
||||
PyObject* seek;
|
||||
PyObject* tell;
|
||||
PyObject* py;
|
||||
|
||||
virtual size_t OnSysRead(void *buffer, size_t bufsize) {
|
||||
if (bufsize == 0)
|
||||
return 0;
|
||||
|
||||
wxPyTState* state = wxPyBeginBlockThreads();
|
||||
PyObject* arglist = Py_BuildValue("(i)", bufsize);
|
||||
PyObject* result = PyEval_CallObject(read, arglist);
|
||||
Py_DECREF(arglist);
|
||||
|
||||
size_t o = 0;
|
||||
if ((result != NULL) && PyString_Check(result)) {
|
||||
o = PyString_Size(result);
|
||||
if (o == 0)
|
||||
m_lasterror = wxSTREAM_EOF;
|
||||
if (o > bufsize)
|
||||
o = bufsize;
|
||||
strncpy((char*)buffer, PyString_AsString(result), o);
|
||||
Py_DECREF(result);
|
||||
|
||||
}
|
||||
else
|
||||
m_lasterror = wxSTREAM_READ_ERROR;
|
||||
wxPyEndBlockThreads(state);
|
||||
m_lastcount = o;
|
||||
return o;
|
||||
}
|
||||
|
||||
virtual size_t OnSysWrite(const void *buffer, size_t bufsize){
|
||||
m_lasterror = wxSTREAM_WRITE_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual off_t OnSysSeek(off_t off, wxSeekMode mode){
|
||||
wxPyTState* state = wxPyBeginBlockThreads();
|
||||
PyObject*arglist = Py_BuildValue("(ii)", off, mode);
|
||||
PyObject*result = PyEval_CallObject(seek, arglist);
|
||||
Py_DECREF(arglist);
|
||||
Py_XDECREF(result);
|
||||
wxPyEndBlockThreads(state);
|
||||
return OnSysTell();
|
||||
}
|
||||
|
||||
virtual off_t OnSysTell() const{
|
||||
wxPyTState* state = wxPyBeginBlockThreads();
|
||||
PyObject* arglist = Py_BuildValue("()");
|
||||
PyObject* result = PyEval_CallObject(tell, arglist);
|
||||
Py_DECREF(arglist);
|
||||
off_t o = 0;
|
||||
if (result != NULL) {
|
||||
o = PyInt_AsLong(result);
|
||||
Py_DECREF(result);
|
||||
};
|
||||
wxPyEndBlockThreads(state);
|
||||
return o;
|
||||
}
|
||||
|
||||
wxPyCBInputStream(PyObject *p, PyObject *r, PyObject *s, PyObject *t)
|
||||
: py(p), read(r), seek(s), tell(t)
|
||||
{}
|
||||
|
||||
public:
|
||||
~wxPyCBInputStream() {
|
||||
wxPyTState* state = wxPyBeginBlockThreads();
|
||||
Py_XDECREF(py);
|
||||
Py_XDECREF(read);
|
||||
Py_XDECREF(seek);
|
||||
Py_XDECREF(tell);
|
||||
wxPyEndBlockThreads(state);
|
||||
}
|
||||
|
||||
virtual size_t GetSize() {
|
||||
if (seek && tell) {
|
||||
off_t temp = OnSysTell();
|
||||
off_t ret = OnSysSeek(0, wxFromEnd);
|
||||
OnSysSeek(temp, wxFromStart);
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
static wxPyCBInputStream* create(PyObject *py) {
|
||||
PyObject* read;
|
||||
PyObject* seek;
|
||||
PyObject* tell;
|
||||
|
||||
if (!PyInstance_Check(py) && !PyFile_Check(py)) {
|
||||
PyErr_SetString(PyExc_TypeError, "Not a file-like object");
|
||||
Py_XDECREF(py);
|
||||
return NULL;
|
||||
}
|
||||
read = getMethod(py, "read");
|
||||
seek = getMethod(py, "seek");
|
||||
tell = getMethod(py, "tell");
|
||||
|
||||
if (!read) {
|
||||
PyErr_SetString(PyExc_TypeError, "Not a file-like object");
|
||||
Py_XDECREF(py);
|
||||
Py_XDECREF(read);
|
||||
Py_XDECREF(seek);
|
||||
Py_XDECREF(tell);
|
||||
return NULL;
|
||||
}
|
||||
return new wxPyCBInputStream(py, read, seek, tell);
|
||||
}
|
||||
|
||||
static PyObject* getMethod(PyObject* py, char* name) {
|
||||
if (!PyObject_HasAttrString(py, name))
|
||||
return NULL;
|
||||
PyObject* o = PyObject_GetAttrString(py, name);
|
||||
if (!PyMethod_Check(o) && !PyCFunction_Check(o)) {
|
||||
Py_DECREF(o);
|
||||
return NULL;
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static wxPyInputStream *new_wxPyInputStream(PyObject *p) {
|
||||
wxInputStream* wxi = wxPyCBInputStream::create(p);
|
||||
if (wxi)
|
||||
return new wxPyInputStream(wxi);
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static PyObject *_wrap_new_wxInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyInputStream * _result;
|
||||
PyObject * _arg0;
|
||||
PyObject * _obj0 = 0;
|
||||
char *_kwnames[] = { "p", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxInputStream",_kwnames,&_obj0))
|
||||
return NULL;
|
||||
{
|
||||
_arg0 = _obj0;
|
||||
}
|
||||
{
|
||||
_result = (wxPyInputStream *)new_wxPyInputStream(_arg0);
|
||||
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyInputStream_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_close(_swigobj) (_swigobj->close())
|
||||
static PyObject *_wrap_wxInputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyInputStream * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_close",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxInputStream_close(_arg0);
|
||||
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_flush(_swigobj) (_swigobj->flush())
|
||||
static PyObject *_wrap_wxInputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyInputStream * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_flush",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxInputStream_flush(_arg0);
|
||||
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_eof(_swigobj) (_swigobj->eof())
|
||||
static PyObject *_wrap_wxInputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxPyInputStream * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_eof",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_result = (bool )wxInputStream_eof(_arg0);
|
||||
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0))
|
||||
static PyObject *_wrap_wxInputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxString * _result;
|
||||
wxPyInputStream * _arg0;
|
||||
int _arg1 = (int ) -1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","size", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxInputStream_read",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_result = (wxString *)wxInputStream_read(_arg0,_arg1);
|
||||
|
||||
}{
|
||||
if (_result) {
|
||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
||||
delete _result;
|
||||
}
|
||||
else
|
||||
_resultobj=0;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0))
|
||||
static PyObject *_wrap_wxInputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxString * _result;
|
||||
wxPyInputStream * _arg0;
|
||||
int _arg1 = (int ) -1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","size", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxInputStream_readline",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_result = (wxString *)wxInputStream_readline(_arg0,_arg1);
|
||||
|
||||
}{
|
||||
if (_result) {
|
||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
||||
delete _result;
|
||||
}
|
||||
else
|
||||
_resultobj=0;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0))
|
||||
static PyObject *_wrap_wxInputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStringPtrList * _result;
|
||||
wxPyInputStream * _arg0;
|
||||
int _arg1 = (int ) -1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","sizehint", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxInputStream_readlines",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_result = (wxStringPtrList *)wxInputStream_readlines(_arg0,_arg1);
|
||||
|
||||
}{
|
||||
if (_result) {
|
||||
_resultobj = PyList_New(_result->GetCount());
|
||||
wxStringPtrList::Node *node = _result->GetFirst();
|
||||
for (int i=0; node; i++) {
|
||||
wxString *s = node->GetData();
|
||||
PyList_SetItem(_resultobj, i, PyString_FromStringAndSize(s->c_str(), s->Len()));
|
||||
node = node->GetNext();
|
||||
delete s;
|
||||
}
|
||||
delete _result;
|
||||
}
|
||||
else
|
||||
_resultobj=0;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxInputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyInputStream * _arg0;
|
||||
int _arg1;
|
||||
int _arg2 = (int ) 0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","offset","whence", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxInputStream_seek",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxInputStream_seek(_arg0,_arg1,_arg2);
|
||||
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxInputStream_tell(_swigobj) (_swigobj->tell())
|
||||
static PyObject *_wrap_wxInputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxPyInputStream * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_tell",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_result = (int )wxInputStream_tell(_arg0);
|
||||
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void wxOutputStream_write(wxOutputStream *self,const wxString & str) {
|
||||
self->Write(str.c_str(), str.Length());
|
||||
}
|
||||
static PyObject *_wrap_wxOutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxOutputStream * _arg0;
|
||||
wxString * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","str", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxOutputStream_write",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxOutputStream_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg1 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
|
||||
#endif
|
||||
}
|
||||
{
|
||||
wxOutputStream_write(_arg0,*_arg1);
|
||||
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyMethodDef streamscMethods[] = {
|
||||
{ "wxOutputStream_write", (PyCFunction) _wrap_wxOutputStream_write, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_tell", (PyCFunction) _wrap_wxInputStream_tell, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_seek", (PyCFunction) _wrap_wxInputStream_seek, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_readlines", (PyCFunction) _wrap_wxInputStream_readlines, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_readline", (PyCFunction) _wrap_wxInputStream_readline, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_read", (PyCFunction) _wrap_wxInputStream_read, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_eof", (PyCFunction) _wrap_wxInputStream_eof, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_flush", (PyCFunction) _wrap_wxInputStream_flush, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxInputStream_close", (PyCFunction) _wrap_wxInputStream_close, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxInputStream", (PyCFunction) _wrap_new_wxInputStream, METH_VARARGS | METH_KEYWORDS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* This table is used by the pointer type-checker
|
||||
*/
|
||||
static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_signed_long","_long",0},
|
||||
{ "_wxPrintQuality","_wxCoord",0},
|
||||
{ "_wxPrintQuality","_int",0},
|
||||
{ "_wxPrintQuality","_signed_int",0},
|
||||
{ "_wxPrintQuality","_unsigned_int",0},
|
||||
{ "_wxPrintQuality","_wxWindowID",0},
|
||||
{ "_wxPrintQuality","_uint",0},
|
||||
{ "_wxPrintQuality","_EBool",0},
|
||||
{ "_wxPrintQuality","_size_t",0},
|
||||
{ "_wxPrintQuality","_time_t",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_size_t","_wxCoord",0},
|
||||
{ "_size_t","_wxPrintQuality",0},
|
||||
{ "_size_t","_time_t",0},
|
||||
{ "_size_t","_unsigned_int",0},
|
||||
{ "_size_t","_int",0},
|
||||
{ "_size_t","_wxWindowID",0},
|
||||
{ "_size_t","_uint",0},
|
||||
{ "_uint","_wxCoord",0},
|
||||
{ "_uint","_wxPrintQuality",0},
|
||||
{ "_uint","_time_t",0},
|
||||
{ "_uint","_size_t",0},
|
||||
{ "_uint","_unsigned_int",0},
|
||||
{ "_uint","_int",0},
|
||||
{ "_uint","_wxWindowID",0},
|
||||
{ "_wxChar","_char",0},
|
||||
{ "_char","_wxChar",0},
|
||||
{ "_EBool","_wxCoord",0},
|
||||
{ "_EBool","_wxPrintQuality",0},
|
||||
{ "_EBool","_signed_int",0},
|
||||
{ "_EBool","_int",0},
|
||||
{ "_EBool","_wxWindowID",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_signed_int","_wxCoord",0},
|
||||
{ "_signed_int","_wxPrintQuality",0},
|
||||
{ "_signed_int","_EBool",0},
|
||||
{ "_signed_int","_wxWindowID",0},
|
||||
{ "_signed_int","_int",0},
|
||||
{ "_WXTYPE","_short",0},
|
||||
{ "_WXTYPE","_signed_short",0},
|
||||
{ "_WXTYPE","_unsigned_short",0},
|
||||
{ "_unsigned_short","_WXTYPE",0},
|
||||
{ "_unsigned_short","_short",0},
|
||||
{ "_signed_short","_WXTYPE",0},
|
||||
{ "_signed_short","_short",0},
|
||||
{ "_unsigned_char","_byte",0},
|
||||
{ "_unsigned_int","_wxCoord",0},
|
||||
{ "_unsigned_int","_wxPrintQuality",0},
|
||||
{ "_unsigned_int","_time_t",0},
|
||||
{ "_unsigned_int","_size_t",0},
|
||||
{ "_unsigned_int","_uint",0},
|
||||
{ "_unsigned_int","_wxWindowID",0},
|
||||
{ "_unsigned_int","_int",0},
|
||||
{ "_short","_WXTYPE",0},
|
||||
{ "_short","_unsigned_short",0},
|
||||
{ "_short","_signed_short",0},
|
||||
{ "_wxWindowID","_wxCoord",0},
|
||||
{ "_wxWindowID","_wxPrintQuality",0},
|
||||
{ "_wxWindowID","_time_t",0},
|
||||
{ "_wxWindowID","_size_t",0},
|
||||
{ "_wxWindowID","_EBool",0},
|
||||
{ "_wxWindowID","_uint",0},
|
||||
{ "_wxWindowID","_int",0},
|
||||
{ "_wxWindowID","_signed_int",0},
|
||||
{ "_wxWindowID","_unsigned_int",0},
|
||||
{ "_int","_wxCoord",0},
|
||||
{ "_int","_wxPrintQuality",0},
|
||||
{ "_int","_time_t",0},
|
||||
{ "_int","_size_t",0},
|
||||
{ "_int","_EBool",0},
|
||||
{ "_int","_uint",0},
|
||||
{ "_int","_wxWindowID",0},
|
||||
{ "_int","_unsigned_int",0},
|
||||
{ "_int","_signed_int",0},
|
||||
{ "_time_t","_wxCoord",0},
|
||||
{ "_time_t","_wxPrintQuality",0},
|
||||
{ "_time_t","_unsigned_int",0},
|
||||
{ "_time_t","_int",0},
|
||||
{ "_time_t","_wxWindowID",0},
|
||||
{ "_time_t","_uint",0},
|
||||
{ "_time_t","_size_t",0},
|
||||
{ "_wxCoord","_int",0},
|
||||
{ "_wxCoord","_signed_int",0},
|
||||
{ "_wxCoord","_unsigned_int",0},
|
||||
{ "_wxCoord","_wxWindowID",0},
|
||||
{ "_wxCoord","_uint",0},
|
||||
{ "_wxCoord","_EBool",0},
|
||||
{ "_wxCoord","_size_t",0},
|
||||
{ "_wxCoord","_time_t",0},
|
||||
{ "_wxCoord","_wxPrintQuality",0},
|
||||
{0,0,0}};
|
||||
|
||||
static PyObject *SWIG_globals;
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
SWIGEXPORT(void) initstreamsc() {
|
||||
PyObject *m, *d;
|
||||
SWIG_globals = SWIG_newvarlink();
|
||||
m = Py_InitModule("streamsc", streamscMethods);
|
||||
d = PyModule_GetDict(m);
|
||||
|
||||
wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
|
||||
{
|
||||
int i;
|
||||
for (i = 0; _swig_mapping[i].n1; i++)
|
||||
SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
|
||||
}
|
||||
}
|
66
wxPython/src/mac/streams.py
Normal file
66
wxPython/src/mac/streams.py
Normal file
@ -0,0 +1,66 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import streamsc
|
||||
import wx
|
||||
import string
|
||||
class wxInputStreamPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def close(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_close,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def flush(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_flush,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def eof(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_eof,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def read(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_read,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def readline(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_readline,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def readlines(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_readlines,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def seek(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_seek,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def tell(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxInputStream_tell,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxInputStream instance at %s>" % (self.this,)
|
||||
class wxInputStream(wxInputStreamPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(streamsc.new_wxInputStream,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxOutputStreamPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def write(self, *_args, **_kwargs):
|
||||
val = apply(streamsc.wxOutputStream_write,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxOutputStream instance at %s>" % (self.this,)
|
||||
class wxOutputStream(wxOutputStreamPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
8124
wxPython/src/mac/utils.cpp
Normal file
8124
wxPython/src/mac/utils.cpp
Normal file
File diff suppressed because it is too large
Load Diff
952
wxPython/src/mac/utils.py
Normal file
952
wxPython/src/mac/utils.py
Normal file
@ -0,0 +1,952 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import utilsc
|
||||
import string
|
||||
class wxConfigBasePtr :
|
||||
Type_Unknown = utilsc.wxConfigBase_Type_Unknown
|
||||
Type_String = utilsc.wxConfigBase_Type_String
|
||||
Type_Boolean = utilsc.wxConfigBase_Type_Boolean
|
||||
Type_Integer = utilsc.wxConfigBase_Type_Integer
|
||||
Type_Float = utilsc.wxConfigBase_Type_Float
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxConfigBase(self)
|
||||
def DeleteAll(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_DeleteAll,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_DeleteEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_DeleteGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Exists(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Exists,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Flush(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Flush,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAppName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetAppName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetFirstGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetFirstEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetNextGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetNextEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberOfEntries(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetNumberOfEntries,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberOfGroups(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetNumberOfGroups,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPath(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetVendorName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetVendorName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_HasEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_HasGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsExpandingEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_IsExpandingEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsRecordingDefaults(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_IsRecordingDefaults,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Read(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Read,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadInt(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_ReadInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadFloat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_ReadFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetExpandEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_SetExpandEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPath(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_SetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRecordDefaults(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_SetRecordDefaults,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAppName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_SetAppName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetVendorName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_SetVendorName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStyle(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_SetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStyle(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Write(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Write,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteInt(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_WriteInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteFloat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_WriteFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEntryType(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_GetEntryType,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RenameEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_RenameEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RenameGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_RenameGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ExpandEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_ExpandEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxConfigBase instance at %s>" % (self.this,)
|
||||
class wxConfigBase(wxConfigBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxConfigPtr(wxConfigBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxConfig(self)
|
||||
def __repr__(self):
|
||||
return "<C wxConfig instance at %s>" % (self.this,)
|
||||
class wxConfig(wxConfigPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxConfig,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxFileConfigPtr(wxConfigBasePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxFileConfig(self)
|
||||
def __repr__(self):
|
||||
return "<C wxFileConfig instance at %s>" % (self.this,)
|
||||
class wxFileConfig(wxFileConfigPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxFileConfig,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxDateTimePtr :
|
||||
Local = utilsc.wxDateTime_Local
|
||||
GMT_12 = utilsc.wxDateTime_GMT_12
|
||||
GMT_11 = utilsc.wxDateTime_GMT_11
|
||||
GMT_10 = utilsc.wxDateTime_GMT_10
|
||||
GMT_9 = utilsc.wxDateTime_GMT_9
|
||||
GMT_8 = utilsc.wxDateTime_GMT_8
|
||||
GMT_7 = utilsc.wxDateTime_GMT_7
|
||||
GMT_6 = utilsc.wxDateTime_GMT_6
|
||||
GMT_5 = utilsc.wxDateTime_GMT_5
|
||||
GMT_4 = utilsc.wxDateTime_GMT_4
|
||||
GMT_3 = utilsc.wxDateTime_GMT_3
|
||||
GMT_2 = utilsc.wxDateTime_GMT_2
|
||||
GMT_1 = utilsc.wxDateTime_GMT_1
|
||||
GMT0 = utilsc.wxDateTime_GMT0
|
||||
GMT1 = utilsc.wxDateTime_GMT1
|
||||
GMT2 = utilsc.wxDateTime_GMT2
|
||||
GMT3 = utilsc.wxDateTime_GMT3
|
||||
GMT4 = utilsc.wxDateTime_GMT4
|
||||
GMT5 = utilsc.wxDateTime_GMT5
|
||||
GMT6 = utilsc.wxDateTime_GMT6
|
||||
GMT7 = utilsc.wxDateTime_GMT7
|
||||
GMT8 = utilsc.wxDateTime_GMT8
|
||||
GMT9 = utilsc.wxDateTime_GMT9
|
||||
GMT10 = utilsc.wxDateTime_GMT10
|
||||
GMT11 = utilsc.wxDateTime_GMT11
|
||||
GMT12 = utilsc.wxDateTime_GMT12
|
||||
WET = utilsc.wxDateTime_WET
|
||||
WEST = utilsc.wxDateTime_WEST
|
||||
CET = utilsc.wxDateTime_CET
|
||||
CEST = utilsc.wxDateTime_CEST
|
||||
EET = utilsc.wxDateTime_EET
|
||||
EEST = utilsc.wxDateTime_EEST
|
||||
MSK = utilsc.wxDateTime_MSK
|
||||
MSD = utilsc.wxDateTime_MSD
|
||||
AST = utilsc.wxDateTime_AST
|
||||
ADT = utilsc.wxDateTime_ADT
|
||||
EST = utilsc.wxDateTime_EST
|
||||
EDT = utilsc.wxDateTime_EDT
|
||||
CST = utilsc.wxDateTime_CST
|
||||
CDT = utilsc.wxDateTime_CDT
|
||||
MST = utilsc.wxDateTime_MST
|
||||
MDT = utilsc.wxDateTime_MDT
|
||||
PST = utilsc.wxDateTime_PST
|
||||
PDT = utilsc.wxDateTime_PDT
|
||||
HST = utilsc.wxDateTime_HST
|
||||
AKST = utilsc.wxDateTime_AKST
|
||||
AKDT = utilsc.wxDateTime_AKDT
|
||||
A_WST = utilsc.wxDateTime_A_WST
|
||||
A_CST = utilsc.wxDateTime_A_CST
|
||||
A_EST = utilsc.wxDateTime_A_EST
|
||||
A_ESST = utilsc.wxDateTime_A_ESST
|
||||
UTC = utilsc.wxDateTime_UTC
|
||||
Gregorian = utilsc.wxDateTime_Gregorian
|
||||
Julian = utilsc.wxDateTime_Julian
|
||||
Country_Unknown = utilsc.wxDateTime_Country_Unknown
|
||||
Country_Default = utilsc.wxDateTime_Country_Default
|
||||
Country_WesternEurope_Start = utilsc.wxDateTime_Country_WesternEurope_Start
|
||||
Country_EEC = utilsc.wxDateTime_Country_EEC
|
||||
France = utilsc.wxDateTime_France
|
||||
Germany = utilsc.wxDateTime_Germany
|
||||
UK = utilsc.wxDateTime_UK
|
||||
Country_WesternEurope_End = utilsc.wxDateTime_Country_WesternEurope_End
|
||||
Russia = utilsc.wxDateTime_Russia
|
||||
USA = utilsc.wxDateTime_USA
|
||||
Jan = utilsc.wxDateTime_Jan
|
||||
Feb = utilsc.wxDateTime_Feb
|
||||
Mar = utilsc.wxDateTime_Mar
|
||||
Apr = utilsc.wxDateTime_Apr
|
||||
May = utilsc.wxDateTime_May
|
||||
Jun = utilsc.wxDateTime_Jun
|
||||
Jul = utilsc.wxDateTime_Jul
|
||||
Aug = utilsc.wxDateTime_Aug
|
||||
Sep = utilsc.wxDateTime_Sep
|
||||
Oct = utilsc.wxDateTime_Oct
|
||||
Nov = utilsc.wxDateTime_Nov
|
||||
Dec = utilsc.wxDateTime_Dec
|
||||
Inv_Month = utilsc.wxDateTime_Inv_Month
|
||||
Sun = utilsc.wxDateTime_Sun
|
||||
Mon = utilsc.wxDateTime_Mon
|
||||
Tue = utilsc.wxDateTime_Tue
|
||||
Wed = utilsc.wxDateTime_Wed
|
||||
Thu = utilsc.wxDateTime_Thu
|
||||
Fri = utilsc.wxDateTime_Fri
|
||||
Sat = utilsc.wxDateTime_Sat
|
||||
Inv_WeekDay = utilsc.wxDateTime_Inv_WeekDay
|
||||
Inv_Year = utilsc.wxDateTime_Inv_Year
|
||||
Name_Full = utilsc.wxDateTime_Name_Full
|
||||
Name_Abbr = utilsc.wxDateTime_Name_Abbr
|
||||
Default_First = utilsc.wxDateTime_Default_First
|
||||
Monday_First = utilsc.wxDateTime_Monday_First
|
||||
Sunday_First = utilsc.wxDateTime_Sunday_First
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxDateTime(self)
|
||||
def SetToCurrent(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToCurrent,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetTimeT(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetTimeT,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetJDN(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetJDN,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetHMS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetHMS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def Set(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_Set,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def ResetTime(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ResetTime,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetYear(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetYear,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetMonth(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetMonth,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetHour(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetHour,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetMinute(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetMinute,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetSecond(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetSecond,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetMillisecond(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetMillisecond,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SetToWeekDayInSameWeek(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToWeekDayInSameWeek,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def GetWeekDayInSameWeek(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetWeekDayInSameWeek,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToNextWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToNextWeekDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def GetNextWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetNextWeekDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToPrevWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToPrevWeekDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def GetPrevWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetPrevWeekDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToWeekDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToLastWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToLastWeekDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLastWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetLastWeekDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToTheWeek(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToTheWeek,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeek(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetWeek,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToLastMonthDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToLastMonthDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def GetLastMonthDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetLastMonthDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToYearDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToYearDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def GetYearDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetYearDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetJulianDayNumber(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetJulianDayNumber,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetJDN(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetJDN,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetModifiedJulianDayNumber(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetModifiedJulianDayNumber,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMJD(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetMJD,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRataDie(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetRataDie,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ToTimezone(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ToTimezone,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def MakeTimezone(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_MakeTimezone,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def ToGMT(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ToGMT,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def MakeGMT(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_MakeGMT,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def IsDST(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsDST,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsValid(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsValid,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTicks(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetTicks,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetYear(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetYear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMonth(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetMonth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetWeekDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHour(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetHour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinute(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetMinute,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSecond(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetSecond,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMillisecond(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetMillisecond,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDayOfYear(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetDayOfYear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeekOfYear(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetWeekOfYear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeekOfMonth(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetWeekOfMonth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsWorkDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsWorkDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEqualTo(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsEqualTo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEarlierThan(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsEarlierThan,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsLaterThan(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsLaterThan,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsStrictlyBetween(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsStrictlyBetween,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsBetween(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsBetween,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSameDate(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsSameDate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSameTime(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsSameTime,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEqualUpTo(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_IsEqualUpTo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddTS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_AddTS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def AddDS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_AddDS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SubtractTS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SubtractTS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def SubtractDS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SubtractDS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val)
|
||||
return val
|
||||
def Subtract(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_Subtract,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __add__TS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime___add__TS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __add__DS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime___add__DS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__DT(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime___sub__DT,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__TS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime___sub__TS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__DS(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime___sub__DS,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __cmp__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime___cmp__,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ParseRfc822Date(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ParseRfc822Date,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ParseFormat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ParseFormat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ParseDateTime(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ParseDateTime,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ParseDate(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ParseDate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ParseTime(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_ParseTime,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Format(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_Format,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FormatDate(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_FormatDate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FormatTime(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_FormatTime,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FormatISODate(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_FormatISODate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FormatISOTime(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_FormatISOTime,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxDateTime instance at %s>" % (self.this,)
|
||||
|
||||
def __add__(self, other):
|
||||
if string.find(other.this, 'wxTimeSpan') != -1:
|
||||
return self.__add__TS(other)
|
||||
if string.find(other.this, 'wxDateSpan') != -1:
|
||||
return self.__add__DS(other)
|
||||
raise TypeError, 'Invalid r.h.s. type for __add__'
|
||||
def __sub__(self, other):
|
||||
if string.find(other.this, 'wxDateTime') != -1:
|
||||
return self.__sub__DT(other)
|
||||
if string.find(other.this, 'wxTimeSpan') != -1:
|
||||
return self.__sub__TS(other)
|
||||
if string.find(other.this, 'wxDateSpan') != -1:
|
||||
return self.__sub__DS(other)
|
||||
raise TypeError, 'Invalid r.h.s. type for __sub__'
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this)
|
||||
def __str__(self):
|
||||
return self.Format()
|
||||
|
||||
class wxDateTime(wxDateTimePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxDateTime,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
def wxDateTimeFromTimeT(*_args,**_kwargs):
|
||||
val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromTimeT,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateTimeFromJDN(*_args,**_kwargs):
|
||||
val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromJDN,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateTimeFromHMS(*_args,**_kwargs):
|
||||
val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromHMS,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateTimeFromDMY(*_args,**_kwargs):
|
||||
val = wxDateTimePtr(apply(utilsc.new_wxDateTimeFromDMY,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
class wxTimeSpanPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxTimeSpan(self)
|
||||
def Add(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Add,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val)
|
||||
return val
|
||||
def Subtract(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Subtract,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val)
|
||||
return val
|
||||
def Multiply(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Multiply,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val)
|
||||
return val
|
||||
def Neg(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Neg,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val)
|
||||
return val
|
||||
def Abs(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Abs,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __add__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan___add__,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan___sub__,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __mul__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan___mul__,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __rmul__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan___rmul__,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __neg__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan___neg__,(self,) + _args, _kwargs)
|
||||
if val: val = wxTimeSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __cmp__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan___cmp__,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsNull(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_IsNull,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsPositive(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_IsPositive,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsNegative(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_IsNegative,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEqualTo(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_IsEqualTo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsLongerThan(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_IsLongerThan,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsShorterThan(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_IsShorterThan,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeeks(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_GetWeeks,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDays(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_GetDays,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHours(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_GetHours,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinutes(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_GetMinutes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSeconds(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_GetSeconds,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMilliseconds(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_GetMilliseconds,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Format(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Format,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxTimeSpan instance at %s>" % (self.this,)
|
||||
class wxTimeSpan(wxTimeSpanPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxTimeSpan,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxDateSpanPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxDateSpan(self)
|
||||
def SetYears(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_SetYears,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def SetMonths(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_SetMonths,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def SetWeeks(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_SetWeeks,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def SetDays(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_SetDays,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def GetYears(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_GetYears,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMonths(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_GetMonths,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeeks(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_GetWeeks,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDays(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_GetDays,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTotalDays(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_GetTotalDays,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Add(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Add,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def Subtract(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Subtract,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def Neg(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Neg,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def Multiply(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Multiply,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def __add__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan___add__,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __sub__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan___sub__,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __mul__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan___mul__,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __rmul__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan___rmul__,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __neg__(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan___neg__,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxDateSpan instance at %s>" % (self.this,)
|
||||
class wxDateSpan(wxDateSpanPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxDateSpan,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
wxGetLocalTime = utilsc.wxGetLocalTime
|
||||
|
||||
wxGetUTCTime = utilsc.wxGetUTCTime
|
||||
|
||||
wxGetCurrentTime = utilsc.wxGetCurrentTime
|
||||
|
||||
wxGetLocalTimeMillis = utilsc.wxGetLocalTimeMillis
|
||||
|
||||
def wxConfigBase_Set(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Set,_args,_kwargs)
|
||||
if val: val = wxConfigBasePtr(val)
|
||||
return val
|
||||
|
||||
def wxConfigBase_Get(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Get,_args,_kwargs)
|
||||
if val: val = wxConfigBasePtr(val)
|
||||
return val
|
||||
|
||||
def wxConfigBase_Create(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfigBase_Create,_args,_kwargs)
|
||||
if val: val = wxConfigBasePtr(val)
|
||||
return val
|
||||
|
||||
wxConfigBase_DontCreateOnDemand = utilsc.wxConfigBase_DontCreateOnDemand
|
||||
|
||||
wxDateTime_SetCountry = utilsc.wxDateTime_SetCountry
|
||||
|
||||
wxDateTime_GetCountry = utilsc.wxDateTime_GetCountry
|
||||
|
||||
wxDateTime_IsWestEuropeanCountry = utilsc.wxDateTime_IsWestEuropeanCountry
|
||||
|
||||
wxDateTime_GetCurrentYear = utilsc.wxDateTime_GetCurrentYear
|
||||
|
||||
wxDateTime_ConvertYearToBC = utilsc.wxDateTime_ConvertYearToBC
|
||||
|
||||
wxDateTime_GetCurrentMonth = utilsc.wxDateTime_GetCurrentMonth
|
||||
|
||||
wxDateTime_IsLeapYear = utilsc.wxDateTime_IsLeapYear
|
||||
|
||||
wxDateTime_GetCentury = utilsc.wxDateTime_GetCentury
|
||||
|
||||
wxDateTime_GetNumberOfDaysinYear = utilsc.wxDateTime_GetNumberOfDaysinYear
|
||||
|
||||
wxDateTime_GetNumberOfDaysInMonth = utilsc.wxDateTime_GetNumberOfDaysInMonth
|
||||
|
||||
wxDateTime_GetMonthName = utilsc.wxDateTime_GetMonthName
|
||||
|
||||
wxDateTime_GetWeekDayName = utilsc.wxDateTime_GetWeekDayName
|
||||
|
||||
wxDateTime_GetAmPmStrings = utilsc.wxDateTime_GetAmPmStrings
|
||||
|
||||
wxDateTime_IsDSTApplicable = utilsc.wxDateTime_IsDSTApplicable
|
||||
|
||||
def wxDateTime_GetBeginDST(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetBeginDST,_args,_kwargs)
|
||||
if val: val = wxDateTimePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateTime_GetEndDST(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetEndDST,_args,_kwargs)
|
||||
if val: val = wxDateTimePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateTime_Now(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_Now,_args,_kwargs)
|
||||
if val: val = wxDateTimePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateTime_Today(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_Today,_args,_kwargs)
|
||||
if val: val = wxDateTimePtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Seconds(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Seconds,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Second(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Second,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Minutes(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Minutes,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Minute(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Minute,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Hours(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Hours,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Hour(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Hour,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Days(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Days,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Day(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Day,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Weeks(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Weeks,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxTimeSpan_Week(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxTimeSpan_Week,_args,_kwargs)
|
||||
if val: val = wxTimeSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Days(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Days,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Day(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Day,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Weeks(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Weeks,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Week(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Week,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Months(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Months,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Month(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Month,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Years(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Years,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxDateSpan_Year(*_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Year,_args,_kwargs)
|
||||
if val: val = wxDateSpanPtr(val); val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxCONFIG_USE_LOCAL_FILE = utilsc.wxCONFIG_USE_LOCAL_FILE
|
||||
wxCONFIG_USE_GLOBAL_FILE = utilsc.wxCONFIG_USE_GLOBAL_FILE
|
||||
wxCONFIG_USE_RELATIVE_PATH = utilsc.wxCONFIG_USE_RELATIVE_PATH
|
10277
wxPython/src/mac/windows.cpp
Normal file
10277
wxPython/src/mac/windows.cpp
Normal file
File diff suppressed because it is too large
Load Diff
982
wxPython/src/mac/windows.py
Normal file
982
wxPython/src/mac/windows.py
Normal file
@ -0,0 +1,982 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import windowsc
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from clip_dnd import *
|
||||
import wx
|
||||
|
||||
def wxDLG_PNT(win, point_or_x, y=None):
|
||||
if y is None:
|
||||
return win.ConvertDialogPointToPixels(point_or_x)
|
||||
else:
|
||||
return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
|
||||
|
||||
def wxDLG_SZE(win, size_width, height=None):
|
||||
if height is None:
|
||||
return win.ConvertDialogSizeToPixels(size_width)
|
||||
else:
|
||||
return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
|
||||
|
||||
class wxEvtHandlerPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def ProcessEvent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddPendingEvent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_AddPendingEvent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEvtHandlerEnabled(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_GetEvtHandlerEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetEvtHandlerEnabled(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_SetEvtHandlerEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_GetNextHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPreviousHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetNextHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_SetNextHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPreviousHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_SetPreviousHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Connect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Disconnect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler_Disconnect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def _setOORInfo(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxEvtHandler__setOORInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxEvtHandler instance at %s>" % (self.this,)
|
||||
class wxEvtHandler(wxEvtHandlerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxEvtHandler,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxValidatorPtr(wxEvtHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Clone(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxValidator_Clone,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxValidator_GetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxValidator_SetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxValidator instance at %s>" % (self.this,)
|
||||
class wxValidator(wxValidatorPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxValidator,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPyValidatorPtr(wxValidatorPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxPyValidator__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyValidator instance at %s>" % (self.this,)
|
||||
class wxPyValidator(wxPyValidatorPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxPyValidator,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxPyValidator, 1)
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxWindowPtr(wxEvtHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CaptureMouse(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_CaptureMouse,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Center(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Center,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Centre(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Centre,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CentreOnParent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_CentreOnParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CenterOnParent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_CenterOnParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CentreOnScreen(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_CentreOnScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CenterOnScreen(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_CenterOnScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ClientToScreenXY(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ClientToScreenXY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ClientToScreen(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ClientToScreen,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Close(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Close,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DestroyChildren(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_DestroyChildren,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsBeingDeleted(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsBeingDeleted,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Enable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindWindowById(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindWindowByName(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Fit(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetChildren(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCharHeight(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCharWidth(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetCharWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientSizeTuple(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetClientSizeTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetConstraints(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs)
|
||||
if val: val = wxLayoutConstraintsPtr(val)
|
||||
return val
|
||||
def GetEventHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFont(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def GetForegroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetForegroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetGrandParent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHandle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetHandle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetId(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetName(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetParent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPositionTuple(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetRect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetRect,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetScrollThumb(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetScrollThumb,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScrollPos(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetScrollPos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScrollRange(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetScrollRange,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSizeTuple(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetSizeTuple,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetTextExtent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetTextExtent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFullTextExtent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetFullTextExtent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTitle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetUpdateRegion(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetUpdateRegion,(self,) + _args, _kwargs)
|
||||
if val: val = wxRegionPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetWindowStyleFlag(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetWindowStyleFlag,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWindowStyleFlag(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetWindowStyleFlag,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWindowStyle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetWindowStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Hide(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InitDialog(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEnabled(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsExposed(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsExposed,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsExposedPoint(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsExposedPoint,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsExposedRect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsExposedRect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsRetained(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsShown(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsShown,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsTopLevel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_IsTopLevel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Layout(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LoadFromResource(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Lower(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def MakeModal(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_MakeModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def MoveXY(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_MoveXY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Move(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PopEventHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PushEventHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PopupMenuXY(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PopupMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PopupMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Raise(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Raise,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Refresh(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Refresh,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RefreshRect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_RefreshRect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReleaseMouse(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveChild(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_RemoveChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Reparent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ScreenToClientXY(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ScreenToClientXY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ScreenToClient(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ScreenToClient,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def ScrollWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ScrollWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAutoLayout(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAutoLayout(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetAutoLayout,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetConstraints(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def UnsetConstraints(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_UnsetConstraints,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFocus(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AcceptsFocus(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_AcceptsFocus,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFont(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetForegroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetForegroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetId(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetName(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetScrollbar(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetScrollPos(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetScrollPos,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDimensions(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetDimensions,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPosition(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetRect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSizeHints(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetSizeHints,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetClientSizeWH(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetClientSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetClientSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCursor(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetEventHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetExtraStyle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetExtraStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTitle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Show(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Show,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def TransferDataFromWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_TransferDataFromWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def TransferDataToWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Validate(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WarpPointer(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_WarpPointer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ConvertDialogPointToPixels(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ConvertDialogPointToPixels,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def ConvertDialogSizeToPixels(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ConvertDialogSizeToPixels,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def DLG_PNT(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_DLG_PNT,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def DLG_SZE(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_DLG_SZE,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def ConvertPixelPointToDialog(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ConvertPixelPointToDialog,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def ConvertPixelSizeToDialog(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ConvertPixelSizeToDialog,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToolTipString(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetToolTipString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetToolTip(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetToolTip,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolTip(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSizer(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSizer(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetValidator(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetValidator(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBestSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetBestSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetCaret(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetCaret,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCaret(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
|
||||
if val: val = wxCaretPtr(val)
|
||||
return val
|
||||
def Freeze(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Freeze,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Thaw(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Thaw,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Update(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Update,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHelpText(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetHelpText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHelpText(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetHelpText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ScrollLines(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ScrollLines,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ScrollPages(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ScrollPages,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LineUp(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_LineUp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LineDown(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_LineDown,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PageUp(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PageUp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PageDown(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PageDown,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAcceleratorTable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetAcceleratorTable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAcceleratorTable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetAcceleratorTable,(self,) + _args, _kwargs)
|
||||
if val: val = wxAcceleratorTablePtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxWindow instance at %s>" % (self.this,)
|
||||
# replaces broken shadow method
|
||||
def GetCaret(self, *_args, **_kwargs):
|
||||
from misc2 import wxCaretPtr
|
||||
val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
|
||||
if val: val = wxCaretPtr(val)
|
||||
return val
|
||||
|
||||
class wxWindow(wxWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreWindow(*_args,**_kwargs):
|
||||
val = wxWindowPtr(apply(windowsc.new_wxPreWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxPanelPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxPanel_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InitDialog(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDefaultItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefaultItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPanel instance at %s>" % (self.this,)
|
||||
class wxPanel(wxPanelPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPrePanel(*_args,**_kwargs):
|
||||
val = wxPanelPtr(apply(windowsc.new_wxPrePanel,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
class wxScrolledWindowPtr(wxPanelPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableScrolling(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScrollPageSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetScrollPageSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTargetWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetTargetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetVirtualSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsRetained(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_IsRetained,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def PrepareDC(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_PrepareDC,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Scroll(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_Scroll,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetScrollbars(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetScrollPageSize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_SetScrollPageSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTargetWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_SetTargetWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetViewStart(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetViewStart,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcScrolledPosition(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_CalcScrolledPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcUnscrolledPosition(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_CalcUnscrolledPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetScale(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_SetScale,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScaleX(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetScaleX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScaleY(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_GetScaleY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AdjustScrollbars(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxScrolledWindow_AdjustScrollbars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxScrolledWindow instance at %s>" % (self.this,)
|
||||
ViewStart = GetViewStart
|
||||
class wxScrolledWindow(wxScrolledWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxScrolledWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreScrolledWindow(*_args,**_kwargs):
|
||||
val = wxScrolledWindowPtr(apply(windowsc.new_wxPreScrolledWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxMenuPtr(wxEvtHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Append(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AppendMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AppendItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AppendSeparator(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Break(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Break,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Check(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsChecked(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Enable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEnabled(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindItemById(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_FindItemById,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTitle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTitle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHelpString(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHelpString(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def UpdateUI(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Delete(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Delete,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_DeleteItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Insert(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Insert,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Remove(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Remove,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemoveItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_RemoveItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DestroyId(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_DestroyId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DestroyItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_DestroyItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMenuItemCount(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetMenuItemCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMenuItems(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetMenuItems,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetEventHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_SetEventHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEventHandler(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetEventHandler,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetInvokingWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_SetInvokingWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetInvokingWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetInvokingWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStyle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsAttached(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_IsAttached,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetParent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_SetParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetParent(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenu_GetParent,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMenu instance at %s>" % (self.this,)
|
||||
class wxMenu(wxMenuPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxMenu,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxMenuBarPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Append(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Insert(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_Insert,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMenuCount(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Replace(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_Replace,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Remove(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_Remove,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EnableTop(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelTop(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabelTop(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_FindMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindMenuItem(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindItemById(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_FindItemById,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Enable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Check(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsChecked(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_IsChecked,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEnabled(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_IsEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHelpString(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHelpString(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMenuBar instance at %s>" % (self.this,)
|
||||
class wxMenuBar(wxMenuBarPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxMenuBar,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxMenuItemPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetId(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_SetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetId(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSeparator(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetText(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_SetText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetText(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCheckable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_SetCheckable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsCheckable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSubMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_IsSubMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSubMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_SetSubMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSubMenu(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Enable(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsEnabled(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Check(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsChecked(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Toggle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_Toggle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHelp(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHelp(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAccel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_GetAccel,(self,) + _args, _kwargs)
|
||||
if val: val = wxAcceleratorEntryPtr(val)
|
||||
return val
|
||||
def SetAccel(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxMenuItem_SetAccel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMenuItem instance at %s>" % (self.this,)
|
||||
class wxMenuItem(wxMenuItemPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxMenuItem,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
wxValidator_IsSilent = windowsc.wxValidator_IsSilent
|
||||
|
||||
wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
|
||||
|
||||
def wxWindow_FindFocus(*_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_FindFocus,_args,_kwargs)
|
||||
return val
|
||||
|
||||
wxWindow_NewControlId = windowsc.wxWindow_NewControlId
|
||||
|
||||
wxWindow_NextControlId = windowsc.wxWindow_NextControlId
|
||||
|
||||
wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
|
||||
|
||||
wxMenuItem_GetLabelFromText = windowsc.wxMenuItem_GetLabelFromText
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
2343
wxPython/src/mac/windows2.cpp
Normal file
2343
wxPython/src/mac/windows2.cpp
Normal file
File diff suppressed because it is too large
Load Diff
255
wxPython/src/mac/windows2.py
Normal file
255
wxPython/src/mac/windows2.py
Normal file
@ -0,0 +1,255 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import windows2c
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
class wxNotebookEventPtr(wxNotifyEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebookEvent_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOldSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebookEvent_GetOldSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetOldSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebookEvent_SetOldSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebookEvent_SetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxNotebookEvent instance at %s>" % (self.this,)
|
||||
class wxNotebookEvent(wxNotebookEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxNotebookEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxNotebookPtr(wxControlPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPageCount(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetPageCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_SetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AdvanceSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_AdvanceSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPageText(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_SetPageText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPageText(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetPageText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetImageList(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_SetImageList,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AssignImageList(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_AssignImageList,(self,) + _args, _kwargs)
|
||||
_args[0].thisown = 0
|
||||
return val
|
||||
def GetImageList(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPageImage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetPageImage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPageImage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_SetPageImage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRowCount(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetRowCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPageSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_SetPageSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPadding(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_SetPadding,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeletePage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_DeletePage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RemovePage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_RemovePage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteAllPages(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_DeleteAllPages,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AddPage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_AddPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertPage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_InsertPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPage(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_GetPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ResizeChildren(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxNotebook_ResizeChildren,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxNotebook instance at %s>" % (self.this,)
|
||||
class wxNotebook(wxNotebookPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxNotebook,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreNotebook(*_args,**_kwargs):
|
||||
val = wxNotebookPtr(apply(windows2c.new_wxPreNotebook,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxSplitterEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetSashPosition(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterEvent_GetSashPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetX(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterEvent_GetX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetY(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterEvent_GetY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindowBeingRemoved(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterEvent_GetWindowBeingRemoved,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSashPosition(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterEvent_SetSashPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSplitterEvent instance at %s>" % (self.this,)
|
||||
class wxSplitterEvent(wxSplitterEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxSplitterEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSplitterWindowPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindow1(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetWindow1,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWindow2(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetWindow2,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSplitMode(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SetSplitMode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSplitMode(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetSplitMode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Initialize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_Initialize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SplitVertically(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SplitVertically,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SplitHorizontally(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Unsplit(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_Unsplit,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReplaceWindow(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_ReplaceWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSplit(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_IsSplit,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSashSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SetSashSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBorderSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SetBorderSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSashSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetSashSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBorderSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetBorderSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSashPosition(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSashPosition(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetSashPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinimumPaneSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_SetMinimumPaneSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinimumPaneSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxSplitterWindow_GetMinimumPaneSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSplitterWindow instance at %s>" % (self.this,)
|
||||
class wxSplitterWindow(wxSplitterWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxSplitterWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreSplitterWindow(*_args,**_kwargs):
|
||||
val = wxSplitterWindowPtr(apply(windows2c.new_wxPreSplitterWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
|
||||
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
|
||||
wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
|
||||
wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
|
||||
wxEVT_COMMAND_SPLITTER_UNSPLIT = windows2c.wxEVT_COMMAND_SPLITTER_UNSPLIT
|
||||
wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = windows2c.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
|
||||
wxSPLIT_HORIZONTAL = windows2c.wxSPLIT_HORIZONTAL
|
||||
wxSPLIT_VERTICAL = windows2c.wxSPLIT_VERTICAL
|
||||
wxSPLIT_DRAG_NONE = windows2c.wxSPLIT_DRAG_NONE
|
||||
wxSPLIT_DRAG_DRAGGING = windows2c.wxSPLIT_DRAG_DRAGGING
|
||||
wxSPLIT_DRAG_LEFT_DOWN = windows2c.wxSPLIT_DRAG_LEFT_DOWN
|
2226
wxPython/src/mac/windows3.cpp
Normal file
2226
wxPython/src/mac/windows3.cpp
Normal file
File diff suppressed because it is too large
Load Diff
297
wxPython/src/mac/windows3.py
Normal file
297
wxPython/src/mac/windows3.py
Normal file
@ -0,0 +1,297 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import windows3c
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from windows import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from windows2 import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
|
||||
from mdi import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
import wx
|
||||
class wxSashEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetEdge(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashEvent_SetEdge,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEdge(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashEvent_GetEdge,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDragRect(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashEvent_SetDragRect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDragRect(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashEvent_GetDragRect,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetDragStatus(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashEvent_SetDragStatus,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDragStatus(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashEvent_GetDragStatus,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSashEvent instance at %s>" % (self.this,)
|
||||
class wxSashEvent(wxSashEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxSashEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSashWindowPtr(wxWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSashVisible(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetSashVisible,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDefaultBorderSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetDefaultBorderSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEdgeMargin(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetEdgeMargin,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetExtraBorderSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetExtraBorderSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaximumSizeX(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetMaximumSizeX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMaximumSizeY(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetMaximumSizeY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinimumSizeX(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetMinimumSizeX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMinimumSizeY(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_GetMinimumSizeY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasBorder(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_HasBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefaultBorderSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetDefaultBorderSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetExtraBorderSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetExtraBorderSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMaximumSizeX(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetMaximumSizeX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMaximumSizeY(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetMaximumSizeY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinimumSizeX(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetMinimumSizeX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinimumSizeY(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetMinimumSizeY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSashVisible(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetSashVisible,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSashBorder(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashWindow_SetSashBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSashWindow instance at %s>" % (self.this,)
|
||||
class wxSashWindow(wxSashWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxSashWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreSashWindow(*_args,**_kwargs):
|
||||
val = wxSashWindowPtr(apply(windows3c.new_wxPreSashWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxQueryLayoutInfoEventPtr(wxEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetRequestedLength(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_SetRequestedLength,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRequestedLength(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_GetRequestedLength,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFlags(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_SetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFlags(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_GetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_SetSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_GetSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_SetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_GetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_SetAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxQueryLayoutInfoEvent_GetAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxQueryLayoutInfoEvent instance at %s>" % (self.this,)
|
||||
class wxQueryLayoutInfoEvent(wxQueryLayoutInfoEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxQueryLayoutInfoEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxCalculateLayoutEventPtr(wxEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetFlags(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxCalculateLayoutEvent_SetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFlags(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxCalculateLayoutEvent_GetFlags,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRect(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxCalculateLayoutEvent_SetRect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRect(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxCalculateLayoutEvent_GetRect,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxCalculateLayoutEvent instance at %s>" % (self.this,)
|
||||
class wxCalculateLayoutEvent(wxCalculateLayoutEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxCalculateLayoutEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxSashLayoutWindowPtr(wxSashWindowPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashLayoutWindow_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashLayoutWindow_GetAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashLayoutWindow_GetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashLayoutWindow_SetAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefaultSize(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashLayoutWindow_SetDefaultSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxSashLayoutWindow_SetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxSashLayoutWindow instance at %s>" % (self.this,)
|
||||
class wxSashLayoutWindow(wxSashLayoutWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxSashLayoutWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreSashLayoutWindow(*_args,**_kwargs):
|
||||
val = wxSashLayoutWindowPtr(apply(windows3c.new_wxPreSashLayoutWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxLayoutAlgorithmPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,windows3c=windows3c):
|
||||
if self.thisown == 1 :
|
||||
windows3c.delete_wxLayoutAlgorithm(self)
|
||||
def LayoutMDIFrame(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxLayoutAlgorithm_LayoutMDIFrame,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LayoutFrame(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxLayoutAlgorithm_LayoutFrame,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def LayoutWindow(self, *_args, **_kwargs):
|
||||
val = apply(windows3c.wxLayoutAlgorithm_LayoutWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxLayoutAlgorithm instance at %s>" % (self.this,)
|
||||
class wxLayoutAlgorithm(wxLayoutAlgorithmPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxLayoutAlgorithm,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxSASH_TOP = windows3c.wxSASH_TOP
|
||||
wxSASH_RIGHT = windows3c.wxSASH_RIGHT
|
||||
wxSASH_BOTTOM = windows3c.wxSASH_BOTTOM
|
||||
wxSASH_LEFT = windows3c.wxSASH_LEFT
|
||||
wxSASH_NONE = windows3c.wxSASH_NONE
|
||||
wxEVT_SASH_DRAGGED = windows3c.wxEVT_SASH_DRAGGED
|
||||
wxSW_3D = windows3c.wxSW_3D
|
||||
wxSW_3DSASH = windows3c.wxSW_3DSASH
|
||||
wxSW_3DBORDER = windows3c.wxSW_3DBORDER
|
||||
wxSW_BORDER = windows3c.wxSW_BORDER
|
||||
wxSASH_STATUS_OK = windows3c.wxSASH_STATUS_OK
|
||||
wxSASH_STATUS_OUT_OF_RANGE = windows3c.wxSASH_STATUS_OUT_OF_RANGE
|
||||
wxLAYOUT_HORIZONTAL = windows3c.wxLAYOUT_HORIZONTAL
|
||||
wxLAYOUT_VERTICAL = windows3c.wxLAYOUT_VERTICAL
|
||||
wxLAYOUT_NONE = windows3c.wxLAYOUT_NONE
|
||||
wxLAYOUT_TOP = windows3c.wxLAYOUT_TOP
|
||||
wxLAYOUT_LEFT = windows3c.wxLAYOUT_LEFT
|
||||
wxLAYOUT_RIGHT = windows3c.wxLAYOUT_RIGHT
|
||||
wxLAYOUT_BOTTOM = windows3c.wxLAYOUT_BOTTOM
|
||||
wxEVT_QUERY_LAYOUT_INFO = windows3c.wxEVT_QUERY_LAYOUT_INFO
|
||||
wxEVT_CALCULATE_LAYOUT = windows3c.wxEVT_CALCULATE_LAYOUT
|
2582
wxPython/src/mac/wx.cpp
Normal file
2582
wxPython/src/mac/wx.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1638
wxPython/src/mac/wx.py
Normal file
1638
wxPython/src/mac/wx.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -761,9 +761,9 @@ long wxExecute(const wxString& command,
|
||||
class wxJoystick : public wxObject {
|
||||
public:
|
||||
wxJoystick(int joystick = wxJOYSTICK1) {
|
||||
bool doSave = wxPyRestoreThread();
|
||||
wxPyTState* state = wxPyBeginBlockThreads();
|
||||
PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform.");
|
||||
wxPySaveThread(doSave);
|
||||
wxPyEndBlockThreads(state);
|
||||
}
|
||||
wxPoint GetPosition() { return wxPoint(-1,-1); }
|
||||
int GetZPosition() { return -1; }
|
||||
|
@ -353,9 +353,11 @@ public:
|
||||
wxValidator* GetValidator();
|
||||
void SetValidator(const wxValidator& validator);
|
||||
|
||||
#ifndef __WXMAC__
|
||||
void SetDropTarget(wxDropTarget* target);
|
||||
wxDropTarget* GetDropTarget();
|
||||
%pragma(python) addtomethod = "SetDropTarget:_args[0].thisown = 0"
|
||||
#endif
|
||||
|
||||
wxSize GetBestSize();
|
||||
|
||||
|
@ -16,7 +16,9 @@
|
||||
#include "helpers.h"
|
||||
#include <wx/sashwin.h>
|
||||
#include <wx/laywin.h>
|
||||
#ifndef __WXMAC__
|
||||
#include <wx/popupwin.h>
|
||||
#endif
|
||||
%}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
@ -203,6 +205,7 @@ public:
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
#ifndef __WXMAC__
|
||||
|
||||
// wxPopupWindow: a special kind of top level window used for popup menus,
|
||||
// combobox popups and such.
|
||||
@ -261,5 +264,6 @@ public:
|
||||
virtual void Dismiss();
|
||||
};
|
||||
|
||||
#endif
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user