SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c81fd4b937
commit
3e1f6ec48a
@ -5580,6 +5580,72 @@ static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxCheckListBox_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
|
||||
static PyObject *_wrap_wxCheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxCheckListBox * _arg0;
|
||||
wxPoint * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","pt", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCheckListBox_HitTest",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTest. Expected _wxCheckListBox_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg1 = &temp;
|
||||
if (! wxPoint_helper(_obj1, &_arg1))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (int )wxCheckListBox_HitTest(_arg0,*_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxCheckListBox_HitTestXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxCheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxCheckListBox * _arg0;
|
||||
wxCoord _arg1;
|
||||
wxCoord _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","x","y", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCheckListBox_HitTestXY",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTestXY. Expected _wxCheckListBox_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (int )wxCheckListBox_HitTestXY(_arg0,_arg1,_arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2))
|
||||
static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -11173,6 +11239,8 @@ static PyMethodDef controlscMethods[] = {
|
||||
{ "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCheckListBox_HitTestXY", (PyCFunction) _wrap_wxCheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCheckListBox_HitTest", (PyCFunction) _wrap_wxCheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -533,6 +533,12 @@ class wxCheckListBoxPtr(wxListBoxPtr):
|
||||
def InsertItems(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HitTest(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxCheckListBox_HitTest,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HitTestXY(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxCheckListBox_HitTestXY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxCheckListBox instance at %s>" % (self.this,)
|
||||
class wxCheckListBox(wxCheckListBoxPtr):
|
||||
|
@ -268,7 +268,7 @@ wxPyMake_TEMPLATE(wxGridTableBase)
|
||||
bool rval = 0; \
|
||||
bool found; \
|
||||
wxPyBeginBlockThreads(); \
|
||||
if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
|
||||
if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
|
||||
PyObject* s = wx2PyString(c); \
|
||||
rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
|
||||
Py_DECREF(s); \
|
||||
|
@ -6504,6 +6504,90 @@ static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyO
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxProcess_IsInputOpened(_swigobj) (_swigobj->IsInputOpened())
|
||||
static PyObject *_wrap_wxProcess_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxPyProcess * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputOpened",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputOpened. Expected _wxPyProcess_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (bool )wxProcess_IsInputOpened(_arg0);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxProcess_IsInputAvailable(_swigobj) (_swigobj->IsInputAvailable())
|
||||
static PyObject *_wrap_wxProcess_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxPyProcess * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputAvailable",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputAvailable. Expected _wxPyProcess_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (bool )wxProcess_IsInputAvailable(_arg0);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxProcess_IsErrorAvailable(_swigobj) (_swigobj->IsErrorAvailable())
|
||||
static PyObject *_wrap_wxProcess_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxPyProcess * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsErrorAvailable",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsErrorAvailable. Expected _wxPyProcess_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (bool )wxProcess_IsErrorAvailable(_arg0);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxJoystickTowxObject(void *ptr) {
|
||||
wxJoystick *src;
|
||||
wxObject *dest;
|
||||
@ -10420,6 +10504,9 @@ static PyMethodDef misc2cMethods[] = {
|
||||
{ "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxProcess_IsErrorAvailable", (PyCFunction) _wrap_wxProcess_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxProcess_IsInputAvailable", (PyCFunction) _wrap_wxProcess_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxProcess_IsInputOpened", (PyCFunction) _wrap_wxProcess_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -10898,43 +10985,6 @@ SWIGEXPORT(void) initmisc2c() {
|
||||
PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL));
|
||||
PyDict_SetItemString(d,"cvar", SWIG_globals);
|
||||
SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set);
|
||||
PyDict_SetItemString(d,"wxART_TOOLBAR", PyString_FromString("toolbar_C"));
|
||||
PyDict_SetItemString(d,"wxART_MENU", PyString_FromString("menu_C"));
|
||||
PyDict_SetItemString(d,"wxART_FRAME_ICON", PyString_FromString("frame_icon_C"));
|
||||
PyDict_SetItemString(d,"wxART_CMN_DIALOG", PyString_FromString("cmn_dialog_C"));
|
||||
PyDict_SetItemString(d,"wxART_HELP_BROWSER", PyString_FromString("help_browser_C"));
|
||||
PyDict_SetItemString(d,"wxART_MESSAGE_BOX", PyString_FromString("message_box_C"));
|
||||
PyDict_SetItemString(d,"wxART_OTHER", PyString_FromString("other_C"));
|
||||
PyDict_SetItemString(d,"wxART_ADD_BOOKMARK", PyString_FromString("add_bookmark"));
|
||||
PyDict_SetItemString(d,"wxART_DEL_BOOKMARK", PyString_FromString("del_bookmark"));
|
||||
PyDict_SetItemString(d,"wxART_HELP_SIDE_PANEL", PyString_FromString("help_side_panel"));
|
||||
PyDict_SetItemString(d,"wxART_HELP_SETTINGS", PyString_FromString("help_settings"));
|
||||
PyDict_SetItemString(d,"wxART_HELP_BOOK", PyString_FromString("help_book"));
|
||||
PyDict_SetItemString(d,"wxART_HELP_FOLDER", PyString_FromString("help_folder"));
|
||||
PyDict_SetItemString(d,"wxART_HELP_PAGE", PyString_FromString("help_page"));
|
||||
PyDict_SetItemString(d,"wxART_GO_BACK", PyString_FromString("go_back"));
|
||||
PyDict_SetItemString(d,"wxART_GO_FORWARD", PyString_FromString("go_forward"));
|
||||
PyDict_SetItemString(d,"wxART_GO_UP", PyString_FromString("go_up"));
|
||||
PyDict_SetItemString(d,"wxART_GO_DOWN", PyString_FromString("go_down"));
|
||||
PyDict_SetItemString(d,"wxART_GO_TO_PARENT", PyString_FromString("go_to_parent"));
|
||||
PyDict_SetItemString(d,"wxART_GO_HOME", PyString_FromString("go_home"));
|
||||
PyDict_SetItemString(d,"wxART_FILE_OPEN", PyString_FromString("file_open"));
|
||||
PyDict_SetItemString(d,"wxART_PRINT", PyString_FromString("print"));
|
||||
PyDict_SetItemString(d,"wxART_HELP", PyString_FromString("help"));
|
||||
PyDict_SetItemString(d,"wxART_TIP", PyString_FromString("tip"));
|
||||
PyDict_SetItemString(d,"wxART_REPORT_VIEW", PyString_FromString("report_view"));
|
||||
PyDict_SetItemString(d,"wxART_LIST_VIEW", PyString_FromString("list_view"));
|
||||
PyDict_SetItemString(d,"wxART_NEW_DIR", PyString_FromString("new_dir"));
|
||||
PyDict_SetItemString(d,"wxART_FOLDER", PyString_FromString("folder"));
|
||||
PyDict_SetItemString(d,"wxART_GO_DIR_UP", PyString_FromString("go_dir_up"));
|
||||
PyDict_SetItemString(d,"wxART_EXECUTABLE_FILE", PyString_FromString("executable_file"));
|
||||
PyDict_SetItemString(d,"wxART_NORMAL_FILE", PyString_FromString("normal_file"));
|
||||
PyDict_SetItemString(d,"wxART_TICK_MARK", PyString_FromString("tick"));
|
||||
PyDict_SetItemString(d,"wxART_CROSS_MARK", PyString_FromString("cross"));
|
||||
PyDict_SetItemString(d,"wxART_ERROR", PyString_FromString("error"));
|
||||
PyDict_SetItemString(d,"wxART_QUESTION", PyString_FromString("question"));
|
||||
PyDict_SetItemString(d,"wxART_WARNING", PyString_FromString("warning"));
|
||||
PyDict_SetItemString(d,"wxART_INFORMATION", PyString_FromString("information"));
|
||||
|
||||
wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
|
||||
wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
|
||||
|
@ -16,6 +16,48 @@ from events import *
|
||||
from streams import *
|
||||
|
||||
from utils import *
|
||||
|
||||
# Art clients
|
||||
wxART_TOOLBAR = 'wxART_TOOLBAR_C'
|
||||
wxART_MENU = 'wxART_MENU_C'
|
||||
wxART_FRAME_ICON = 'wxART_FRAME_ICON_C'
|
||||
wxART_CMN_DIALOG = 'wxART_CMN_DIALOG_C'
|
||||
wxART_HELP_BROWSER = 'wxART_HELP_BROWSER_C'
|
||||
wxART_MESSAGE_BOX = 'wxART_MESSAGE_BOX_C'
|
||||
wxART_OTHER = 'wxART_OTHER_C'
|
||||
|
||||
# Art IDs
|
||||
wxART_ADD_BOOKMARK = 'wxART_ADD_BOOKMARK'
|
||||
wxART_DEL_BOOKMARK = 'wxART_DEL_BOOKMARK'
|
||||
wxART_HELP_SIDE_PANEL = 'wxART_HELP_SIDE_PANEL'
|
||||
wxART_HELP_SETTINGS = 'wxART_HELP_SETTINGS'
|
||||
wxART_HELP_BOOK = 'wxART_HELP_BOOK'
|
||||
wxART_HELP_FOLDER = 'wxART_HELP_FOLDER'
|
||||
wxART_HELP_PAGE = 'wxART_HELP_PAGE'
|
||||
wxART_GO_BACK = 'wxART_GO_BACK'
|
||||
wxART_GO_FORWARD = 'wxART_GO_FORWARD'
|
||||
wxART_GO_UP = 'wxART_GO_UP'
|
||||
wxART_GO_DOWN = 'wxART_GO_DOWN'
|
||||
wxART_GO_TO_PARENT = 'wxART_GO_TO_PARENT'
|
||||
wxART_GO_HOME = 'wxART_GO_HOME'
|
||||
wxART_FILE_OPEN = 'wxART_FILE_OPEN'
|
||||
wxART_PRINT = 'wxART_PRINT'
|
||||
wxART_HELP = 'wxART_HELP'
|
||||
wxART_TIP = 'wxART_TIP'
|
||||
wxART_REPORT_VIEW = 'wxART_REPORT_VIEW'
|
||||
wxART_LIST_VIEW = 'wxART_LIST_VIEW'
|
||||
wxART_NEW_DIR = 'wxART_NEW_DIR'
|
||||
wxART_FOLDER = 'wxART_FOLDER'
|
||||
wxART_GO_DIR_UP = 'wxART_GO_DIR_UP'
|
||||
wxART_EXECUTABLE_FILE = 'wxART_EXECUTABLE_FILE'
|
||||
wxART_NORMAL_FILE = 'wxART_NORMAL_FILE'
|
||||
wxART_TICK_MARK = 'wxART_TICK_MARK'
|
||||
wxART_CROSS_MARK = 'wxART_CROSS_MARK'
|
||||
wxART_ERROR = 'wxART_ERROR'
|
||||
wxART_QUESTION = 'wxART_QUESTION'
|
||||
wxART_WARNING = 'wxART_WARNING'
|
||||
wxART_INFORMATION = 'wxART_INFORMATION'
|
||||
|
||||
class wxSystemSettingsPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@ -562,6 +604,15 @@ class wxProcessPtr(wxEvtHandlerPtr):
|
||||
def CloseOutput(self, *_args, **_kwargs):
|
||||
val = apply(misc2c.wxProcess_CloseOutput,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsInputOpened(self, *_args, **_kwargs):
|
||||
val = apply(misc2c.wxProcess_IsInputOpened,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsInputAvailable(self, *_args, **_kwargs):
|
||||
val = apply(misc2c.wxProcess_IsInputAvailable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsErrorAvailable(self, *_args, **_kwargs):
|
||||
val = apply(misc2c.wxProcess_IsErrorAvailable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxProcess instance at %s>" % (self.this,)
|
||||
class wxProcess(wxProcessPtr):
|
||||
@ -1380,40 +1431,3 @@ wxMAILCAP_GNOME = misc2c.wxMAILCAP_GNOME
|
||||
wxMAILCAP_ALL = misc2c.wxMAILCAP_ALL
|
||||
cvar = misc2c.cvar
|
||||
wxTheMimeTypesManager = wxMimeTypesManagerPtr(misc2c.cvar.wxTheMimeTypesManager)
|
||||
wxART_TOOLBAR = misc2c.wxART_TOOLBAR
|
||||
wxART_MENU = misc2c.wxART_MENU
|
||||
wxART_FRAME_ICON = misc2c.wxART_FRAME_ICON
|
||||
wxART_CMN_DIALOG = misc2c.wxART_CMN_DIALOG
|
||||
wxART_HELP_BROWSER = misc2c.wxART_HELP_BROWSER
|
||||
wxART_MESSAGE_BOX = misc2c.wxART_MESSAGE_BOX
|
||||
wxART_OTHER = misc2c.wxART_OTHER
|
||||
wxART_ADD_BOOKMARK = misc2c.wxART_ADD_BOOKMARK
|
||||
wxART_DEL_BOOKMARK = misc2c.wxART_DEL_BOOKMARK
|
||||
wxART_HELP_SIDE_PANEL = misc2c.wxART_HELP_SIDE_PANEL
|
||||
wxART_HELP_SETTINGS = misc2c.wxART_HELP_SETTINGS
|
||||
wxART_HELP_BOOK = misc2c.wxART_HELP_BOOK
|
||||
wxART_HELP_FOLDER = misc2c.wxART_HELP_FOLDER
|
||||
wxART_HELP_PAGE = misc2c.wxART_HELP_PAGE
|
||||
wxART_GO_BACK = misc2c.wxART_GO_BACK
|
||||
wxART_GO_FORWARD = misc2c.wxART_GO_FORWARD
|
||||
wxART_GO_UP = misc2c.wxART_GO_UP
|
||||
wxART_GO_DOWN = misc2c.wxART_GO_DOWN
|
||||
wxART_GO_TO_PARENT = misc2c.wxART_GO_TO_PARENT
|
||||
wxART_GO_HOME = misc2c.wxART_GO_HOME
|
||||
wxART_FILE_OPEN = misc2c.wxART_FILE_OPEN
|
||||
wxART_PRINT = misc2c.wxART_PRINT
|
||||
wxART_HELP = misc2c.wxART_HELP
|
||||
wxART_TIP = misc2c.wxART_TIP
|
||||
wxART_REPORT_VIEW = misc2c.wxART_REPORT_VIEW
|
||||
wxART_LIST_VIEW = misc2c.wxART_LIST_VIEW
|
||||
wxART_NEW_DIR = misc2c.wxART_NEW_DIR
|
||||
wxART_FOLDER = misc2c.wxART_FOLDER
|
||||
wxART_GO_DIR_UP = misc2c.wxART_GO_DIR_UP
|
||||
wxART_EXECUTABLE_FILE = misc2c.wxART_EXECUTABLE_FILE
|
||||
wxART_NORMAL_FILE = misc2c.wxART_NORMAL_FILE
|
||||
wxART_TICK_MARK = misc2c.wxART_TICK_MARK
|
||||
wxART_CROSS_MARK = misc2c.wxART_CROSS_MARK
|
||||
wxART_ERROR = misc2c.wxART_ERROR
|
||||
wxART_QUESTION = misc2c.wxART_QUESTION
|
||||
wxART_WARNING = misc2c.wxART_WARNING
|
||||
wxART_INFORMATION = misc2c.wxART_INFORMATION
|
||||
|
@ -1570,55 +1570,6 @@ static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObje
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define new_wxPostScriptDC2(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
|
||||
static PyObject *_wrap_new_wxPostScriptDC2(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPostScriptDC * _result;
|
||||
wxString * _arg0;
|
||||
bool _arg1 = (bool ) TRUE;
|
||||
wxWindow * _arg2 = (wxWindow *) NULL;
|
||||
PyObject * _obj0 = 0;
|
||||
int tempbool1 = (int) TRUE;
|
||||
PyObject * _argo2 = 0;
|
||||
char *_kwnames[] = { "output","interactive","parent", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC2",_kwnames,&_obj0,&tempbool1,&_argo2))
|
||||
return NULL;
|
||||
{
|
||||
_arg0 = wxString_in_helper(_obj0);
|
||||
if (_arg0 == NULL)
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
if (_argo2) {
|
||||
if (_argo2 == Py_None) { _arg2 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC2. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (wxPostScriptDC *)new_wxPostScriptDC2(*_arg0,_arg1,_arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
{
|
||||
if (_obj0)
|
||||
delete _arg0;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPostScriptDC_GetPrintData(_swigobj) (_swigobj->GetPrintData())
|
||||
static PyObject *_wrap_wxPostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -5511,7 +5462,6 @@ static PyMethodDef printfwcMethods[] = {
|
||||
{ "wxPostScriptDC_SetResolution", (PyCFunction) _wrap_wxPostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPostScriptDC_SetPrintData", (PyCFunction) _wrap_wxPostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPostScriptDC_GetPrintData", (PyCFunction) _wrap_wxPostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPostScriptDC2", (PyCFunction) _wrap_new_wxPostScriptDC2, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPrintData_SetPrintMode", (PyCFunction) _wrap_wxPrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPrintData_SetPrinterTranslation", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -182,11 +182,6 @@ class wxPostScriptDC(wxPostScriptDCPtr):
|
||||
|
||||
|
||||
|
||||
def wxPostScriptDC2(*_args,**_kwargs):
|
||||
val = wxPostScriptDCPtr(apply(printfwc.new_wxPostScriptDC2,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
class wxPageSetupDialogDataPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
|
@ -7867,6 +7867,7 @@ SWIGEXPORT(void) initutilsc() {
|
||||
PyDict_SetItemString(d,"wxCONFIG_USE_LOCAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_LOCAL_FILE));
|
||||
PyDict_SetItemString(d,"wxCONFIG_USE_GLOBAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_GLOBAL_FILE));
|
||||
PyDict_SetItemString(d,"wxCONFIG_USE_RELATIVE_PATH", PyInt_FromLong((long) wxCONFIG_USE_RELATIVE_PATH));
|
||||
PyDict_SetItemString(d,"wxCONFIG_USE_NO_ESCAPE_CHARACTERS", PyInt_FromLong((long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
|
||||
|
||||
// These are no longer needed since utils is back in the core
|
||||
// wxClassInfo::CleanUpClasses();
|
||||
|
@ -956,3 +956,4 @@ def wxDateSpan_Year(*_args, **_kwargs):
|
||||
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
|
||||
wxCONFIG_USE_NO_ESCAPE_CHARACTERS = utilsc.wxCONFIG_USE_NO_ESCAPE_CHARACTERS
|
||||
|
@ -136,6 +136,9 @@ public:
|
||||
DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
|
||||
DEC_PYCALLBACK_SIZE_const(GetMaxSize);
|
||||
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -162,6 +165,9 @@ IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus);
|
||||
IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard);
|
||||
IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize);
|
||||
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild);
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
|
||||
|
||||
// C++ version of Python aware wxControl
|
||||
class wxPyControl : public wxControl
|
||||
{
|
||||
@ -198,6 +204,9 @@ public:
|
||||
DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
|
||||
DEC_PYCALLBACK_SIZE_const(GetMaxSize);
|
||||
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -224,6 +233,9 @@ IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
|
||||
IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
|
||||
IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
|
||||
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
|
||||
|
||||
// C++ version of Python aware wxPanel
|
||||
class wxPyPanel : public wxPanel
|
||||
{
|
||||
@ -259,6 +271,9 @@ public:
|
||||
DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
|
||||
DEC_PYCALLBACK_SIZE_const(GetMaxSize);
|
||||
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -285,6 +300,9 @@ IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus);
|
||||
IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard);
|
||||
IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize);
|
||||
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild);
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -3086,6 +3104,80 @@ static PyObject *_wrap_wxPyWindow_base_GetMaxSize(PyObject *self, PyObject *args
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyWindow_base_AddChild(_swigobj,_swigarg0) (_swigobj->base_AddChild(_swigarg0))
|
||||
static PyObject *_wrap_wxPyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyWindow * _arg0;
|
||||
wxWindow * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","child", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyWindow_base_AddChild",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_AddChild. Expected _wxPyWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyWindow_base_AddChild. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyWindow_base_AddChild(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyWindow_base_RemoveChild(_swigobj,_swigarg0) (_swigobj->base_RemoveChild(_swigarg0))
|
||||
static PyObject *_wrap_wxPyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyWindow * _arg0;
|
||||
wxWindow * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","child", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyWindow_base_RemoveChild",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyWindow_base_RemoveChild. Expected _wxPyWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyWindow_base_RemoveChild. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyWindow_base_RemoveChild(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxPyControlTowxControl(void *ptr) {
|
||||
wxPyControl *src;
|
||||
wxControl *dest;
|
||||
@ -3759,6 +3851,80 @@ static PyObject *_wrap_wxPyControl_base_GetMaxSize(PyObject *self, PyObject *arg
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyControl_base_AddChild(_swigobj,_swigarg0) (_swigobj->base_AddChild(_swigarg0))
|
||||
static PyObject *_wrap_wxPyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyControl * _arg0;
|
||||
wxWindow * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","child", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyControl_base_AddChild",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_AddChild. Expected _wxPyControl_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyControl_base_AddChild. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyControl_base_AddChild(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyControl_base_RemoveChild(_swigobj,_swigarg0) (_swigobj->base_RemoveChild(_swigarg0))
|
||||
static PyObject *_wrap_wxPyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyControl * _arg0;
|
||||
wxWindow * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","child", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyControl_base_RemoveChild",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyControl_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyControl_base_RemoveChild. Expected _wxPyControl_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyControl_base_RemoveChild. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyControl_base_RemoveChild(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxPyPanelTowxPanel(void *ptr) {
|
||||
wxPyPanel *src;
|
||||
wxPanel *dest;
|
||||
@ -4423,7 +4589,83 @@ static PyObject *_wrap_wxPyPanel_base_GetMaxSize(PyObject *self, PyObject *args,
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyPanel_base_AddChild(_swigobj,_swigarg0) (_swigobj->base_AddChild(_swigarg0))
|
||||
static PyObject *_wrap_wxPyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyPanel * _arg0;
|
||||
wxWindow * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","child", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPanel_base_AddChild",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_AddChild. Expected _wxPyPanel_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPanel_base_AddChild. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyPanel_base_AddChild(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyPanel_base_RemoveChild(_swigobj,_swigarg0) (_swigobj->base_RemoveChild(_swigarg0))
|
||||
static PyObject *_wrap_wxPyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyPanel * _arg0;
|
||||
wxWindow * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","child", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPanel_base_RemoveChild",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPanel_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPanel_base_RemoveChild. Expected _wxPyPanel_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPanel_base_RemoveChild. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyPanel_base_RemoveChild(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyMethodDef windows2cMethods[] = {
|
||||
{ "wxPyPanel_base_RemoveChild", (PyCFunction) _wrap_wxPyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyPanel_base_AddChild", (PyCFunction) _wrap_wxPyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyPanel_base_GetMaxSize", (PyCFunction) _wrap_wxPyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyPanel_base_AcceptsFocus", (PyCFunction) _wrap_wxPyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -4442,6 +4684,8 @@ static PyMethodDef windows2cMethods[] = {
|
||||
{ "wxPyPanel_base_DoMoveWindow", (PyCFunction) _wrap_wxPyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyPanel__setCallbackInfo", (PyCFunction) _wrap_wxPyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPyPanel", (PyCFunction) _wrap_new_wxPyPanel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyControl_base_RemoveChild", (PyCFunction) _wrap_wxPyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyControl_base_AddChild", (PyCFunction) _wrap_wxPyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyControl_base_GetMaxSize", (PyCFunction) _wrap_wxPyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyControl_base_AcceptsFocus", (PyCFunction) _wrap_wxPyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -4460,6 +4704,8 @@ static PyMethodDef windows2cMethods[] = {
|
||||
{ "wxPyControl_base_DoMoveWindow", (PyCFunction) _wrap_wxPyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyControl__setCallbackInfo", (PyCFunction) _wrap_wxPyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPyControl", (PyCFunction) _wrap_new_wxPyControl, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyWindow_base_RemoveChild", (PyCFunction) _wrap_wxPyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyWindow_base_AddChild", (PyCFunction) _wrap_wxPyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyWindow_base_GetMaxSize", (PyCFunction) _wrap_wxPyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_wxPyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyWindow_base_AcceptsFocus", (PyCFunction) _wrap_wxPyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -303,6 +303,12 @@ class wxPyWindowPtr(wxWindowPtr):
|
||||
val = apply(windows2c.wxPyWindow_base_GetMaxSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def base_AddChild(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxPyWindow_base_AddChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_RemoveChild(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxPyWindow_base_RemoveChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyWindow instance at %s>" % (self.this,)
|
||||
class wxPyWindow(wxPyWindowPtr):
|
||||
@ -373,6 +379,12 @@ class wxPyControlPtr(wxControlPtr):
|
||||
val = apply(windows2c.wxPyControl_base_GetMaxSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def base_AddChild(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxPyControl_base_AddChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_RemoveChild(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxPyControl_base_RemoveChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyControl instance at %s>" % (self.this,)
|
||||
class wxPyControl(wxPyControlPtr):
|
||||
@ -443,6 +455,12 @@ class wxPyPanelPtr(wxPanelPtr):
|
||||
val = apply(windows2c.wxPyPanel_base_GetMaxSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def base_AddChild(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxPyPanel_base_AddChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_RemoveChild(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxPyPanel_base_RemoveChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyPanel instance at %s>" % (self.this,)
|
||||
class wxPyPanel(wxPyPanelPtr):
|
||||
|
2300
wxPython/src/mac/wizard.cpp
Normal file
2300
wxPython/src/mac/wizard.cpp
Normal file
File diff suppressed because it is too large
Load Diff
277
wxPython/src/mac/wizard.py
Normal file
277
wxPython/src/mac/wizard.py
Normal file
@ -0,0 +1,277 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import wizardc
|
||||
|
||||
from windows import *
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
|
||||
from fonts import *
|
||||
|
||||
from clip_dnd import *
|
||||
|
||||
from frames import *
|
||||
|
||||
from stattool import *
|
||||
|
||||
from controls import *
|
||||
|
||||
from events import *
|
||||
|
||||
# wizard events
|
||||
def EVT_WIZARD_PAGE_CHANGED(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_WIZARD_PAGE_CHANGED, func)
|
||||
|
||||
def EVT_WIZARD_PAGE_CHANGING(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_WIZARD_PAGE_CHANGING, func)
|
||||
|
||||
def EVT_WIZARD_CANCEL(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_WIZARD_CANCEL, func)
|
||||
|
||||
def EVT_WIZARD_HELP(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_WIZARD_HELP, func)
|
||||
|
||||
|
||||
class wxWizardEventPtr(wxNotifyEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetDirection(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardEvent_GetDirection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPage(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardEvent_GetPage,(self,) + _args, _kwargs)
|
||||
if val: val = wxWizardPagePtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxWizardEvent instance at %s>" % (self.this,)
|
||||
class wxWizardEvent(wxWizardEventPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(wizardc.new_wxWizardEvent,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxWizardPagePtr(wxPanelPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPage_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Init(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPage_Init,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPrev(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPage_GetPrev,(self,) + _args, _kwargs)
|
||||
if val: val = wxWizardPagePtr(val)
|
||||
return val
|
||||
def GetNext(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPage_GetNext,(self,) + _args, _kwargs)
|
||||
if val: val = wxWizardPagePtr(val)
|
||||
return val
|
||||
def GetBitmap(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPage_GetBitmap,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxWizardPage instance at %s>" % (self.this,)
|
||||
class wxWizardPage(wxWizardPagePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPyWizardPagePtr(wxWizardPagePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def _setCallbackInfo(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage__setCallbackInfo,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoMoveWindow(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoMoveWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoSetSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoSetSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoSetClientSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoSetClientSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoSetVirtualSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoSetVirtualSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoGetSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoGetSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoGetClientSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoGetClientSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoGetPosition(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoGetPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_DoGetVirtualSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoGetVirtualSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def base_DoGetBestSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_DoGetBestSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def base_InitDialog(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_InitDialog,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_TransferDataToWindow(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_TransferDataToWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_TransferDataFromWindow(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_TransferDataFromWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_Validate(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_Validate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_AcceptsFocus(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_AcceptsFocus,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_AcceptsFocusFromKeyboard,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_GetMaxSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_GetMaxSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def base_AddChild(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_AddChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_RemoveChild(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxPyWizardPage_base_RemoveChild,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyWizardPage instance at %s>" % (self.this,)
|
||||
class wxPyWizardPage(wxPyWizardPagePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(wizardc.new_wxPyWizardPage,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setCallbackInfo(self, wxPyWizardPage)
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPrePyWizardPage(*_args,**_kwargs):
|
||||
val = wxPyWizardPagePtr(apply(wizardc.new_wxPrePyWizardPage,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxWizardPageSimplePtr(wxWizardPagePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPageSimple_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Init(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPageSimple_Init,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPrev(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPageSimple_SetPrev,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetNext(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizardPageSimple_SetNext,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxWizardPageSimple instance at %s>" % (self.this,)
|
||||
class wxWizardPageSimple(wxWizardPageSimplePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(wizardc.new_wxWizardPageSimple,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreWizardPageSimple(*_args,**_kwargs):
|
||||
val = wxWizardPageSimplePtr(apply(wizardc.new_wxPreWizardPageSimple,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
class wxWizardPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Init(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_Init,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RunWizard(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_RunWizard,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCurrentPage(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_GetCurrentPage,(self,) + _args, _kwargs)
|
||||
if val: val = wxWizardPagePtr(val)
|
||||
return val
|
||||
def SetPageSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_SetPageSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPageSize(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_GetPageSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def FitToPage(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_FitToPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsRunning(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_IsRunning,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowPage(self, *_args, **_kwargs):
|
||||
val = apply(wizardc.wxWizard_ShowPage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxWizard instance at %s>" % (self.this,)
|
||||
class wxWizard(wxWizardPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(wizardc.new_wxWizard,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setOORInfo(self)
|
||||
|
||||
|
||||
|
||||
def wxPreWizard(*_args,**_kwargs):
|
||||
val = wxWizardPtr(apply(wizardc.new_wxPreWizard,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
val._setOORInfo(val)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
wxWizardPageSimple_Chain = wizardc.wxWizardPageSimple_Chain
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxWIZARD_EX_HELPBUTTON = wizardc.wxWIZARD_EX_HELPBUTTON
|
||||
wxEVT_WIZARD_PAGE_CHANGED = wizardc.wxEVT_WIZARD_PAGE_CHANGED
|
||||
wxEVT_WIZARD_PAGE_CHANGING = wizardc.wxEVT_WIZARD_PAGE_CHANGING
|
||||
wxEVT_WIZARD_CANCEL = wizardc.wxEVT_WIZARD_CANCEL
|
||||
wxEVT_WIZARD_HELP = wizardc.wxEVT_WIZARD_HELP
|
||||
|
||||
|
||||
#-------------- USER INCLUDE -----------------------
|
||||
|
||||
# Stuff these names into the wx namespace so wxPyConstructObject can find them
|
||||
import wx
|
||||
wx.wxWizardEventPtr = wxWizardEventPtr
|
Loading…
Reference in New Issue
Block a user