Refactored Python shadows to use wxControlWithItems where appropriate.
Implememted SetClientData for wxControlWithItems. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -42,6 +42,53 @@ def wxPreControl(*_args,**_kwargs):
|
||||
return val
|
||||
|
||||
|
||||
class wxControlWithItemsPtr(wxControlPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Delete(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_Delete,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCount(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_GetCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_GetString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_SetString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_FindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Select(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_Select,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStringSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_GetStringSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Append(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_Append,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientData(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_GetClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetClientData(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxControlWithItems_SetClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxControlWithItems instance at %s>" % (self.this,)
|
||||
Number = GetCount
|
||||
class wxControlWithItems(wxControlWithItemsPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxButtonPtr(wxControlPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -160,40 +207,19 @@ def wxPreCheckBox(*_args,**_kwargs):
|
||||
return val
|
||||
|
||||
|
||||
class wxChoicePtr(wxControlPtr):
|
||||
class wxChoicePtr(wxControlWithItemsPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Append(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_Append,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Delete(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_Delete,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_FindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColumns(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_GetColumns,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_GetString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStringSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_GetStringSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCount(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_GetCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColumns(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxChoice_SetColumns,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -209,7 +235,6 @@ class wxChoicePtr(wxControlPtr):
|
||||
def __repr__(self):
|
||||
return "<C wxChoice instance at %s>" % (self.this,)
|
||||
|
||||
Number = GetCount
|
||||
Select = SetSelection
|
||||
|
||||
class wxChoice(wxChoicePtr):
|
||||
@@ -232,39 +257,18 @@ class wxComboBoxPtr(wxChoicePtr):
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Append(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Copy(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_Copy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Cut(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_Cut,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Delete(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetInsertionPoint(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_GetInsertionPoint,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLastPosition(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_GetLastPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStringSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetValue(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxComboBox_GetValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -428,46 +432,25 @@ def wxPreStaticText(*_args,**_kwargs):
|
||||
return val
|
||||
|
||||
|
||||
class wxListBoxPtr(wxControlPtr):
|
||||
class wxListBoxPtr(wxControlWithItemsPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Append(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_Append,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Delete(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_Delete,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Deselect(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_Deselect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def FindString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_FindString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_GetSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelections(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_GetSelections,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertItems(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_InsertItems,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetString(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_GetString,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStringSelection(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_GetStringSelection,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCount(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_GetCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsSelected(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxListBox_IsSelected,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -494,7 +477,6 @@ class wxListBoxPtr(wxControlPtr):
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxListBox instance at %s>" % (self.this,)
|
||||
Number = GetCount
|
||||
class wxListBox(wxListBoxPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxListBox,_args,_kwargs)
|
||||
|
@@ -6498,6 +6498,42 @@ static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyOb
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent())
|
||||
static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxKeyEvent * _result;
|
||||
wxTreeEvent * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0);
|
||||
_result = (wxKeyEvent *) &_result_ref;
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
|
||||
static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -9473,6 +9509,7 @@ static PyMethodDef controls2cMethods[] = {
|
||||
{ "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@@ -829,6 +829,10 @@ class wxTreeEventPtr(wxNotifyEventPtr):
|
||||
val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetKeyEvent(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxTreeEvent_GetKeyEvent,(self,) + _args, _kwargs)
|
||||
if val: val = wxKeyEventPtr(val)
|
||||
return val
|
||||
def GetCode(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
@@ -1098,6 +1098,45 @@ static PyObject *_wrap_wxCommandEvent_SetInt(PyObject *self, PyObject *args, PyO
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyObject * wxCommandEvent_GetClientData(wxCommandEvent *self) {
|
||||
wxPyClientData* data = (wxPyClientData*)self->GetClientObject();
|
||||
if (data) {
|
||||
Py_INCREF(data->m_obj);
|
||||
return data->m_obj;
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
static PyObject *_wrap_wxCommandEvent_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
PyObject * _result;
|
||||
wxCommandEvent * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCommandEvent_GetClientData",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCommandEvent_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCommandEvent_GetClientData. Expected _wxCommandEvent_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (PyObject *)wxCommandEvent_GetClientData(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
}{
|
||||
_resultobj = _result;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxScrollEventTowxCommandEvent(void *ptr) {
|
||||
wxScrollEvent *src;
|
||||
wxCommandEvent *dest;
|
||||
@@ -7119,6 +7158,7 @@ static PyMethodDef eventscMethods[] = {
|
||||
{ "wxScrollEvent_GetPosition", (PyCFunction) _wrap_wxScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollEvent_GetOrientation", (PyCFunction) _wrap_wxScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxScrollEvent", (PyCFunction) _wrap_new_wxScrollEvent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCommandEvent_GetClientData", (PyCFunction) _wrap_wxCommandEvent_GetClientData, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCommandEvent_SetInt", (PyCFunction) _wrap_wxCommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCommandEvent_SetExtraLong", (PyCFunction) _wrap_wxCommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxCommandEvent_SetString", (PyCFunction) _wrap_wxCommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -7404,6 +7444,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxCommandEvent","_class_wxScrollEvent",SwigwxScrollEventTowxCommandEvent},
|
||||
{ "_wxCommandEvent","_wxScrollEvent",SwigwxScrollEventTowxCommandEvent},
|
||||
{ "_char","_wxChar",0},
|
||||
{ "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
|
||||
{ "_wxScrollEvent","_class_wxSpinEvent",SwigwxSpinEventTowxScrollEvent},
|
||||
{ "_wxScrollEvent","_wxSpinEvent",SwigwxSpinEventTowxScrollEvent},
|
||||
{ "_EBool","_wxCoord",0},
|
||||
@@ -7412,6 +7453,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_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},
|
||||
|
@@ -135,6 +135,9 @@ class wxCommandEventPtr(wxEventPtr):
|
||||
def SetInt(self, *_args, **_kwargs):
|
||||
val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetClientData(self, *_args, **_kwargs):
|
||||
val = apply(eventsc.wxCommandEvent_GetClientData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxCommandEvent instance at %s>" % (self.this,)
|
||||
class wxCommandEvent(wxCommandEventPtr):
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -15,62 +15,91 @@ from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
class wxFramePtr(wxWindowPtr):
|
||||
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
|
||||
|
||||
|
||||
|
||||
def wxPreTopLevelWindow(*_args,**_kwargs):
|
||||
val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
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 Centre(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Centre,(self,) + _args, _kwargs)
|
||||
def GetClientAreaOrigin(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetClientAreaOrigin,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def CreateStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateToolBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetIcon(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetIcon,(self,) + _args, _kwargs)
|
||||
if val: val = wxIconPtr(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 GetTitle(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetToolBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Iconize(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Iconize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsIconized(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_IsIconized,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Maximize(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Maximize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsMaximized(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_IsMaximized,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Restore(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Restore,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAcceleratorTable(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetAcceleratorTable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetIcon(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetIcon,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMenuBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -80,31 +109,15 @@ class wxFramePtr(wxWindowPtr):
|
||||
def SetStatusWidths(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTitle(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_SetTitle,(self,) + _args, _kwargs)
|
||||
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 MakeModal(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_MakeModal,(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 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 ShowFullScreen(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_ShowFullScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsFullScreen(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_IsFullScreen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxFrame instance at %s>" % (self.this,)
|
||||
class wxFrame(wxFramePtr):
|
||||
@@ -120,6 +133,55 @@ def wxPreFrame(*_args,**_kwargs):
|
||||
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
|
||||
|
||||
|
||||
|
||||
def wxPreDialog(*_args,**_kwargs):
|
||||
val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
class wxMiniFramePtr(wxFramePtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -170,3 +232,4 @@ 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
|
||||
|
@@ -186,6 +186,27 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
wxColour* wxNamedColour(const wxString& colorName) {
|
||||
return new wxColour(colorName);
|
||||
}
|
||||
|
||||
class wxPyPen : public wxPen {
|
||||
public:
|
||||
wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
|
||||
: wxPen(colour, width, style)
|
||||
{ m_dash = NULL; }
|
||||
~wxPyPen() {
|
||||
if (m_dash)
|
||||
delete m_dash;
|
||||
}
|
||||
|
||||
void SetDashes(int nb_dashes, const wxDash *dash) {
|
||||
m_dash = new wxDash[nb_dashes];
|
||||
for (int i=0; i<nb_dashes; i++)
|
||||
m_dash[i] = dash[i];
|
||||
wxPen::SetDashes(nb_dashes, m_dash);
|
||||
}
|
||||
|
||||
private:
|
||||
wxDash* m_dash;
|
||||
};
|
||||
// Alternate 'constructor'
|
||||
wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
|
||||
return new wxMemoryDC(oldDC);
|
||||
@@ -236,7 +257,7 @@ extern wxFont wxNullFont;
|
||||
extern wxColour wxNullColour;
|
||||
extern wxFontList * wxTheFontList;
|
||||
extern wxPenList * wxThePenList;
|
||||
extern wxBrushlist * wxTheBrushList;
|
||||
extern wxBrushList * wxTheBrushList;
|
||||
extern wxColourDatabase * wxTheColourDatabase;
|
||||
|
||||
#endif
|
||||
@@ -1240,7 +1261,7 @@ static PyObject *_wrap_wxTheBrushList_get() {
|
||||
PyObject * pyobj;
|
||||
char ptemp[128];
|
||||
|
||||
SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p");
|
||||
SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
|
||||
pyobj = PyString_FromString(ptemp);
|
||||
return pyobj;
|
||||
}
|
||||
@@ -1963,6 +1984,43 @@ static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyO
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
|
||||
static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxBitmap * _arg0;
|
||||
wxIcon * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","icon", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxMaskTowxObject(void *ptr) {
|
||||
wxMask *src;
|
||||
wxObject *dest;
|
||||
@@ -4793,43 +4851,6 @@ static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
|
||||
static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxPen * _arg0;
|
||||
wxDash ** _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","dashes", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxPen_GetDashes(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -4879,6 +4900,143 @@ static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxPyPenTowxPen(void *ptr) {
|
||||
wxPyPen *src;
|
||||
wxPen *dest;
|
||||
src = (wxPyPen *) ptr;
|
||||
dest = (wxPen *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxPyPenTowxGDIObject(void *ptr) {
|
||||
wxPyPen *src;
|
||||
wxGDIObject *dest;
|
||||
src = (wxPyPen *) ptr;
|
||||
dest = (wxGDIObject *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxPyPenTowxObject(void *ptr) {
|
||||
wxPyPen *src;
|
||||
wxObject *dest;
|
||||
src = (wxPyPen *) ptr;
|
||||
dest = (wxObject *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
#define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
|
||||
static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyPen * _result;
|
||||
wxColour * _arg0;
|
||||
int _arg1 = (int ) 1;
|
||||
int _arg2 = (int ) wxSOLID;
|
||||
wxColour temp;
|
||||
PyObject * _obj0 = 0;
|
||||
char *_kwnames[] = { "colour","width","style", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
|
||||
return NULL;
|
||||
{
|
||||
_arg0 = &temp;
|
||||
if (! wxColour_helper(_obj0, &_arg0))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define delete_wxPyPen(_swigobj) (delete _swigobj)
|
||||
static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyPen * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
delete_wxPyPen(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyPen * _arg0;
|
||||
int _arg1;
|
||||
wxDash * _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
char *_kwnames[] = { "self","choices", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_obj2)
|
||||
{
|
||||
_arg2 = (wxDash*)byte_LIST_helper(_obj2);
|
||||
if (_arg2 == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (_obj2) {
|
||||
_arg1 = PyList_Size(_obj2);
|
||||
}
|
||||
else {
|
||||
_arg1 = 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxPyPen_SetDashes(_arg0,_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
delete [] _arg2;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxPenListTowxObject(void *ptr) {
|
||||
wxPenList *src;
|
||||
wxObject *dest;
|
||||
@@ -5308,6 +5466,14 @@ static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxBrushListTowxObject(void *ptr) {
|
||||
wxBrushList *src;
|
||||
wxObject *dest;
|
||||
src = (wxBrushList *) ptr;
|
||||
dest = (wxObject *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
|
||||
static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -10800,8 +10966,10 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -10884,6 +11052,7 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -10933,6 +11102,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPrintQuality","_EBool",0},
|
||||
{ "_wxPrintQuality","_size_t",0},
|
||||
{ "_wxPrintQuality","_time_t",0},
|
||||
{ "_wxPen","_class_wxPyPen",SwigwxPyPenTowxPen},
|
||||
{ "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
@@ -10942,6 +11113,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
|
||||
{ "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
|
||||
{ "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
|
||||
{ "_wxGDIObject","_class_wxPyPen",SwigwxPyPenTowxGDIObject},
|
||||
{ "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
|
||||
{ "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
|
||||
{ "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
|
||||
{ "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
|
||||
@@ -10986,10 +11159,14 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
|
||||
{ "_class_wxObject","_class_wxDC",SwigwxDCTowxObject},
|
||||
{ "_class_wxObject","_wxDC",SwigwxDCTowxObject},
|
||||
{ "_class_wxObject","_class_wxBrushList",SwigwxBrushListTowxObject},
|
||||
{ "_class_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
|
||||
{ "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
|
||||
{ "_class_wxObject","_wxBrush",SwigwxBrushTowxObject},
|
||||
{ "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
|
||||
{ "_class_wxObject","_wxPenList",SwigwxPenListTowxObject},
|
||||
{ "_class_wxObject","_class_wxPyPen",SwigwxPyPenTowxObject},
|
||||
{ "_class_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
|
||||
{ "_class_wxObject","_class_wxPen",SwigwxPenTowxObject},
|
||||
{ "_class_wxObject","_wxPen",SwigwxPenTowxObject},
|
||||
{ "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
|
||||
@@ -11078,10 +11255,14 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
|
||||
{ "_wxObject","_class_wxDC",SwigwxDCTowxObject},
|
||||
{ "_wxObject","_wxDC",SwigwxDCTowxObject},
|
||||
{ "_wxObject","_class_wxBrushList",SwigwxBrushListTowxObject},
|
||||
{ "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
|
||||
{ "_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
|
||||
{ "_wxObject","_wxBrush",SwigwxBrushTowxObject},
|
||||
{ "_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
|
||||
{ "_wxObject","_wxPenList",SwigwxPenListTowxObject},
|
||||
{ "_wxObject","_class_wxPyPen",SwigwxPyPenTowxObject},
|
||||
{ "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
|
||||
{ "_wxObject","_class_wxPen",SwigwxPenTowxObject},
|
||||
{ "_wxObject","_wxPen",SwigwxPenTowxObject},
|
||||
{ "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
|
||||
@@ -11112,6 +11293,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_unsigned_int","_uint",0},
|
||||
{ "_unsigned_int","_wxWindowID",0},
|
||||
{ "_unsigned_int","_int",0},
|
||||
{ "_class_wxPen","_class_wxPyPen",SwigwxPyPenTowxPen},
|
||||
{ "_class_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
|
||||
{ "_short","_WXTYPE",0},
|
||||
{ "_short","_unsigned_short",0},
|
||||
{ "_short","_signed_short",0},
|
||||
@@ -11130,6 +11313,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_class_wxPyPen",SwigwxPyPenTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
|
||||
{ "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
|
||||
|
@@ -77,6 +77,9 @@ class wxBitmapPtr(wxGDIObjectPtr):
|
||||
val = apply(gdic.wxBitmap_GetSubBitmap,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def CopyFromIcon(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxBitmap_CopyFromIcon,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxBitmap instance at %s>" % (self.this,)
|
||||
|
||||
@@ -451,9 +454,6 @@ class wxPenPtr(wxGDIObjectPtr):
|
||||
def SetWidth(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDashes(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDashes(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -467,6 +467,26 @@ class wxPen(wxPenPtr):
|
||||
|
||||
|
||||
|
||||
class wxPyPenPtr(wxPenPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,gdic=gdic):
|
||||
if self.thisown == 1 :
|
||||
gdic.delete_wxPyPen(self)
|
||||
def SetDashes(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxPyPen_SetDashes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyPen instance at %s>" % (self.this,)
|
||||
class wxPyPen(wxPyPenPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(gdic.new_wxPyPen,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPenListPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -530,7 +550,7 @@ class wxBrush(wxBrushPtr):
|
||||
|
||||
|
||||
|
||||
class wxBrushListPtr :
|
||||
class wxBrushListPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
@@ -1292,6 +1312,7 @@ wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
|
||||
wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
|
||||
wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList)
|
||||
wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList)
|
||||
wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList)
|
||||
wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase)
|
||||
wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
|
||||
wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
|
||||
|
@@ -3552,40 +3552,6 @@ static PyObject *_wrap_wxDateTime_SetToWeekDay(PyObject *self, PyObject *args, P
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateTime_GetWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetWeekDay(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
||||
static PyObject *_wrap_wxDateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDateTime * _result;
|
||||
wxDateTime * _arg0;
|
||||
wxDateTime::WeekDay _arg1;
|
||||
int _arg2 = (int ) 1;
|
||||
wxDateTime::Month _arg3 = (wxDateTime::Month ) wxDateTime::Inv_Month;
|
||||
int _arg4 = (int ) wxDateTime::Inv_Year;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","weekday","n","month","year", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|iii:wxDateTime_GetWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekDay. Expected _wxDateTime_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxDateTime (wxDateTime_GetWeekDay(_arg0,_arg1,_arg2,_arg3,_arg4));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateTime_SetToLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetToLastWeekDay(_swigarg0,_swigarg1,_swigarg2))
|
||||
static PyObject *_wrap_wxDateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -4346,6 +4312,43 @@ static PyObject *_wrap_wxDateTime_GetDay(PyObject *self, PyObject *args, PyObjec
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateTime_GetWeekDay(_swigobj,_swigarg0) (_swigobj->GetWeekDay(_swigarg0))
|
||||
static PyObject *_wrap_wxDateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDateTime::WeekDay _result;
|
||||
wxDateTime * _arg0;
|
||||
wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","tz", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetWeekDay",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekDay. Expected _wxDateTime_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_obj1)
|
||||
{
|
||||
_arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1));
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxDateTime::WeekDay )wxDateTime_GetWeekDay(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_arg1) delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateTime_GetHour(_swigobj,_swigarg0) (_swigobj->GetHour(_swigarg0))
|
||||
static PyObject *_wrap_wxDateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -7775,6 +7778,7 @@ static PyMethodDef utilscMethods[] = {
|
||||
{ "wxDateTime_GetSecond", (PyCFunction) _wrap_wxDateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetMinute", (PyCFunction) _wrap_wxDateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetHour", (PyCFunction) _wrap_wxDateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetWeekDay", (PyCFunction) _wrap_wxDateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetDay", (PyCFunction) _wrap_wxDateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetMonth", (PyCFunction) _wrap_wxDateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetYear", (PyCFunction) _wrap_wxDateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -7798,7 +7802,6 @@ static PyMethodDef utilscMethods[] = {
|
||||
{ "wxDateTime_SetToTheWeek", (PyCFunction) _wrap_wxDateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetLastWeekDay", (PyCFunction) _wrap_wxDateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_SetToLastWeekDay", (PyCFunction) _wrap_wxDateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetWeekDay", (PyCFunction) _wrap_wxDateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_SetToWeekDay", (PyCFunction) _wrap_wxDateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_GetPrevWeekDay", (PyCFunction) _wrap_wxDateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateTime_SetToPrevWeekDay", (PyCFunction) _wrap_wxDateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@@ -338,10 +338,6 @@ class wxDateTimePtr :
|
||||
def SetToWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToWeekDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_GetWeekDay,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateTimePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetToLastWeekDay(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateTime_SetToLastWeekDay,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -421,6 +417,9 @@ class wxDateTimePtr :
|
||||
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
|
||||
|
@@ -3062,13 +3062,13 @@ static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *
|
||||
static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _arg0;
|
||||
bool _arg1;
|
||||
bool _arg1 = (bool ) TRUE;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1;
|
||||
int tempbool1 = (int) TRUE;
|
||||
char *_kwnames[] = { "self","flag", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
@@ -5658,6 +5658,41 @@ static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, Py
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
|
||||
static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxAcceleratorTable * _result;
|
||||
wxWindow * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0))
|
||||
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 wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxPanelTowxWindow(void *ptr) {
|
||||
wxPanel *src;
|
||||
wxWindow *dest;
|
||||
@@ -5915,684 +5950,6 @@ static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, Py
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxDialogTowxPanel(void *ptr) {
|
||||
wxDialog *src;
|
||||
wxPanel *dest;
|
||||
src = (wxDialog *) ptr;
|
||||
dest = (wxPanel *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxDialogTowxWindow(void *ptr) {
|
||||
wxDialog *src;
|
||||
wxWindow *dest;
|
||||
src = (wxDialog *) ptr;
|
||||
dest = (wxWindow *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxDialogTowxEvtHandler(void *ptr) {
|
||||
wxDialog *src;
|
||||
wxEvtHandler *dest;
|
||||
src = (wxDialog *) ptr;
|
||||
dest = (wxEvtHandler *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
static void *SwigwxDialogTowxObject(void *ptr) {
|
||||
wxDialog *src;
|
||||
wxObject *dest;
|
||||
src = (wxDialog *) ptr;
|
||||
dest = (wxObject *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
#define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
|
||||
static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _result;
|
||||
wxWindow * _arg0;
|
||||
wxWindowID _arg1;
|
||||
wxString * _arg2;
|
||||
wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
|
||||
wxSize * _arg4 = (wxSize *) &wxDefaultSize;
|
||||
long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
|
||||
char * _arg6 = (char *) "dialogBox";
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj3 = 0;
|
||||
wxSize temp0;
|
||||
PyObject * _obj4 = 0;
|
||||
char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
|
||||
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_wxDialog. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg2 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj2)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
|
||||
#endif
|
||||
}
|
||||
if (_obj3)
|
||||
{
|
||||
_arg3 = &temp;
|
||||
if (! wxPoint_helper(_obj3, &_arg3))
|
||||
return NULL;
|
||||
}
|
||||
if (_obj4)
|
||||
{
|
||||
_arg4 = &temp0;
|
||||
if (! wxSize_helper(_obj4, &_arg4))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
{
|
||||
if (_obj2)
|
||||
delete _arg2;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define new_wxPreDialog() (new wxDialog())
|
||||
static PyObject *_wrap_new_wxPreDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _result;
|
||||
char *_kwnames[] = { NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDialog",_kwnames))
|
||||
return NULL;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxDialog *)new_wxPreDialog();
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
|
||||
static PyObject *_wrap_wxDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxDialog * _arg0;
|
||||
wxWindow * _arg1;
|
||||
wxWindowID _arg2;
|
||||
wxString * _arg3;
|
||||
wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
|
||||
wxSize * _arg5 = (wxSize *) &wxDefaultSize;
|
||||
long _arg6 = (long ) wxDEFAULT_DIALOG_STYLE;
|
||||
char * _arg7 = (char *) "dialogBox";
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
PyObject * _obj3 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj4 = 0;
|
||||
wxSize temp0;
|
||||
PyObject * _obj5 = 0;
|
||||
char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxDialog_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_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 wxDialog_Create. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg3 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj3)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
|
||||
#endif
|
||||
}
|
||||
if (_obj4)
|
||||
{
|
||||
_arg4 = &temp;
|
||||
if (! wxPoint_helper(_obj4, &_arg4))
|
||||
return NULL;
|
||||
}
|
||||
if (_obj5)
|
||||
{
|
||||
_arg5 = &temp0;
|
||||
if (! wxSize_helper(_obj5, &_arg5))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxDialog_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj3)
|
||||
delete _arg3;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _arg0;
|
||||
int _arg1 = (int ) wxBOTH;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","direction", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDialog_Centre(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","retCode", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDialog_EndModal(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
|
||||
static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxString * _result;
|
||||
wxDialog * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxDialog_GetTitle(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
}{
|
||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
||||
}
|
||||
{
|
||||
delete _result;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _arg0;
|
||||
bool _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1;
|
||||
char *_kwnames[] = { "self","iconize", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDialog_Iconize(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
|
||||
static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxDialog * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxDialog_IsIconized(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _arg0;
|
||||
bool _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1;
|
||||
char *_kwnames[] = { "self","flag", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDialog_SetModal(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
|
||||
static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxDialog * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxDialog_IsModal(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _arg0;
|
||||
wxString * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","title", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_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;
|
||||
wxDialog_SetTitle(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxDialog * _arg0;
|
||||
bool _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1;
|
||||
char *_kwnames[] = { "self","show", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxDialog_Show(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
|
||||
static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxDialog * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxDialog_ShowModal(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
|
||||
static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxDialog * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxDialog_GetReturnCode(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDialog * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","retCode", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDialog_SetReturnCode(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSizer * _result;
|
||||
wxDialog * _arg0;
|
||||
wxString * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","message", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_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;
|
||||
_result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
}{ _resultobj = wxPyMake_wxObject(_result); }
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
|
||||
static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSizer * _result;
|
||||
wxDialog * _arg0;
|
||||
long _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","flags", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
}{ _resultobj = wxPyMake_wxObject(_result); }
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
|
||||
wxScrolledWindow *src;
|
||||
wxPanel *dest;
|
||||
@@ -10645,29 +10002,13 @@ static PyMethodDef windowscMethods[] = {
|
||||
{ "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -10856,8 +10197,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
|
||||
{ "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
|
||||
@@ -10877,8 +10216,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxObject","_wxMenu",SwigwxMenuTowxObject},
|
||||
{ "_class_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
|
||||
{ "_class_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
|
||||
{ "_class_wxObject","_class_wxDialog",SwigwxDialogTowxObject},
|
||||
{ "_class_wxObject","_wxDialog",SwigwxDialogTowxObject},
|
||||
{ "_class_wxObject","_class_wxPanel",SwigwxPanelTowxObject},
|
||||
{ "_class_wxObject","_wxPanel",SwigwxPanelTowxObject},
|
||||
{ "_class_wxObject","_class_wxWindow",SwigwxWindowTowxObject},
|
||||
@@ -10898,8 +10235,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_size_t","_uint",0},
|
||||
{ "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
|
||||
{ "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
|
||||
{ "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
|
||||
{ "_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
|
||||
{ "_uint","_wxCoord",0},
|
||||
{ "_uint","_wxPrintQuality",0},
|
||||
{ "_uint","_time_t",0},
|
||||
@@ -10921,8 +10256,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
|
||||
{ "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
|
||||
{ "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
|
||||
{ "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
|
||||
{ "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
|
||||
{ "_signed_int","_wxCoord",0},
|
||||
{ "_signed_int","_wxPrintQuality",0},
|
||||
{ "_signed_int","_EBool",0},
|
||||
@@ -10937,8 +10270,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
|
||||
{ "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
|
||||
{ "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
|
||||
{ "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
|
||||
{ "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
|
||||
{ "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
|
||||
{ "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
|
||||
{ "_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject},
|
||||
@@ -10949,8 +10280,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxObject","_wxMenu",SwigwxMenuTowxObject},
|
||||
{ "_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
|
||||
{ "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
|
||||
{ "_wxObject","_class_wxDialog",SwigwxDialogTowxObject},
|
||||
{ "_wxObject","_wxDialog",SwigwxDialogTowxObject},
|
||||
{ "_wxObject","_class_wxPanel",SwigwxPanelTowxObject},
|
||||
{ "_wxObject","_wxPanel",SwigwxPanelTowxObject},
|
||||
{ "_wxObject","_class_wxWindow",SwigwxWindowTowxObject},
|
||||
@@ -11016,8 +10345,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
|
||||
@@ -11030,8 +10357,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
|
||||
{ "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
|
||||
{ "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
|
||||
{ "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
|
||||
{ "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
|
||||
{ "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
|
||||
{ "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
|
||||
{0,0,0}};
|
||||
|
@@ -544,6 +544,10 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
def PageDown(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_PageDown,(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
|
||||
@@ -597,70 +601,6 @@ def wxPrePanel(*_args,**_kwargs):
|
||||
return val
|
||||
|
||||
|
||||
class wxDialogPtr(wxPanelPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Create(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_Create,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Centre(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_Centre,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EndModal(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_EndModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTitle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_GetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Iconize(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_Iconize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsIconized(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_IsIconized,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetModal(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_SetModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsModal(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_IsModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTitle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_SetTitle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Show(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_Show,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShowModal(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_ShowModal,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetReturnCode(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetReturnCode(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateTextSizer(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateButtonSizer(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.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(windowsc.new_wxDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
def wxPreDialog(*_args,**_kwargs):
|
||||
val = wxDialogPtr(apply(windowsc.new_wxPreDialog,_args,_kwargs))
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
class wxScrolledWindowPtr(wxPanelPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
Reference in New Issue
Block a user