First pass on STC wrappers
Lots of little fixes, tweaks, additions, etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3344,7 +3344,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxDataObject","_class_wxDataObject",0},
|
||||
{ "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -3451,7 +3450,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
|
||||
{ "_class_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -3562,8 +3560,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxBitmap","_wxBitmap",0},
|
||||
{ "_class_wxMemoryDC","_wxMemoryDC",0},
|
||||
{ "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxPalette","_wxPalette",0},
|
||||
{ "_wxFileDataObject","_class_wxFileDataObject",0},
|
||||
{ "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
|
||||
|
||||
@@ -2731,7 +2731,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -2858,7 +2857,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -3097,8 +3095,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_class_wxColourDialog","_wxColourDialog",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
|
||||
@@ -7424,7 +7424,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice},
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -7513,7 +7512,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -7832,8 +7830,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,50 @@ from events import *
|
||||
|
||||
from controls import *
|
||||
import wx
|
||||
class wxListItemAttrPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def SetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_SetTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_SetBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFont(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_SetFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasTextColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_HasTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_HasBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasFont(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_HasFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_GetTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_GetBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetFont(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItemAttr_GetFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxListItemAttr instance at %s>" % (self.this,)
|
||||
class wxListItemAttr(wxListItemAttrPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controls2c.new_wxListItemAttr,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxListItemPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -20,6 +64,97 @@ class wxListItemPtr :
|
||||
def __del__(self,controls2c=controls2c):
|
||||
if self.thisown == 1 :
|
||||
controls2c.delete_wxListItem(self)
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ClearAttributes(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_ClearAttributes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMask(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetId(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColumn(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetColumn,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetState(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetState,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetStateMask(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetStateMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetText(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetImage(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetImage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetData(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetWidth(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlign(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetAlign,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFont(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_SetFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMask(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetId(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColumn(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetColumn,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetState(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetState,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetText(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetImage(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetImage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetData(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetWidth(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAlign(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetAlign,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAttributes(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetAttributes,(self,) + _args, _kwargs)
|
||||
if val: val = wxListItemAttrPtr(val)
|
||||
return val
|
||||
def HasAttributes(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_HasAttributes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetFont(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListItem_GetFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "m_mask" :
|
||||
controls2c.wxListItem_m_mask_set(self,value)
|
||||
@@ -88,6 +223,47 @@ class wxListEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetCode(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetCode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetIndex(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOldIndex(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetOldIndex,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetOldItem(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetOldItem,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColumn(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetColumn,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Cancelled(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_Cancelled,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPoint(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetPoint,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetLabel(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetText(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetImage(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetImage,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetData(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetData,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetMask(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetItem(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxListEvent_GetItem,(self,) + _args, _kwargs)
|
||||
if val: val = wxListItemPtr(val)
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "m_code" :
|
||||
controls2c.wxListEvent_m_code_set(self,value)
|
||||
@@ -671,10 +847,6 @@ wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
|
||||
wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
|
||||
wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
|
||||
wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
|
||||
wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
|
||||
wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
|
||||
wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
|
||||
wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
|
||||
wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
|
||||
wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
|
||||
wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
|
||||
@@ -684,6 +856,10 @@ wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
|
||||
wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
|
||||
wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
|
||||
wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT
|
||||
wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
|
||||
wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
|
||||
wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
|
||||
wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
|
||||
wxTreeItemIcon_Normal = controls2c.wxTreeItemIcon_Normal
|
||||
wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected
|
||||
wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded
|
||||
|
||||
@@ -219,34 +219,6 @@ static PyObject *_wrap_wxFrame_Centre(PyObject *self, PyObject *args, PyObject *
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
|
||||
static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxFrame * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","id", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_Command(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
||||
static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -322,6 +294,41 @@ static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args, PyO
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_GetIcon(_swigobj) (_swigobj->GetIcon())
|
||||
static PyObject *_wrap_wxFrame_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxIcon * _result;
|
||||
wxFrame * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetIcon",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetIcon. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
const wxIcon & _result_ref = wxFrame_GetIcon(_arg0);
|
||||
_result = (wxIcon *) &_result_ref;
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
|
||||
static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -543,6 +550,60 @@ static PyObject *_wrap_wxFrame_Maximize(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_IsMaximized(_swigobj) (_swigobj->IsMaximized())
|
||||
static PyObject *_wrap_wxFrame_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxFrame * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_IsMaximized",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsMaximized. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxFrame_IsMaximized(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_Restore(_swigobj) (_swigobj->Restore())
|
||||
static PyObject *_wrap_wxFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxFrame * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_Restore",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Restore. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_Restore(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
|
||||
static PyObject *_wrap_wxFrame_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -852,6 +913,121 @@ static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObje
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
|
||||
static PyObject *_wrap_wxFrame_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxFrame * _arg0;
|
||||
bool _arg1 = (bool ) TRUE;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1 = (int) TRUE;
|
||||
char *_kwnames[] = { "self","modal", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxFrame_MakeModal",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_MakeModal. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_MakeModal(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
|
||||
static PyObject *_wrap_wxFrame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPoint * _result;
|
||||
wxFrame * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetClientAreaOrigin",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxPoint (wxFrame_GetClientAreaOrigin(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
|
||||
static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxFrame * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","id", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxFrame_Command(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0))
|
||||
static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxFrame * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","id", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_ProcessCommand",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxFrame_ProcessCommand(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxMiniFrameTowxFrame(void *ptr) {
|
||||
wxMiniFrame *src;
|
||||
wxFrame *dest;
|
||||
@@ -946,6 +1122,10 @@ static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject
|
||||
|
||||
static PyMethodDef framescMethods[] = {
|
||||
{ "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_MakeModal", (PyCFunction) _wrap_wxFrame_MakeModal, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_SetTitle", (PyCFunction) _wrap_wxFrame_SetTitle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -954,6 +1134,8 @@ static PyMethodDef framescMethods[] = {
|
||||
{ "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_SetIcon", (PyCFunction) _wrap_wxFrame_SetIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_SetAcceleratorTable", (PyCFunction) _wrap_wxFrame_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_Restore", (PyCFunction) _wrap_wxFrame_Restore, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_IsMaximized", (PyCFunction) _wrap_wxFrame_IsMaximized, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_Maximize", (PyCFunction) _wrap_wxFrame_Maximize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_IsIconized", (PyCFunction) _wrap_wxFrame_IsIconized, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_Iconize", (PyCFunction) _wrap_wxFrame_Iconize, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -961,9 +1143,9 @@ static PyMethodDef framescMethods[] = {
|
||||
{ "wxFrame_GetTitle", (PyCFunction) _wrap_wxFrame_GetTitle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_GetIcon", (PyCFunction) _wrap_wxFrame_GetIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxFrame_Centre", (PyCFunction) _wrap_wxFrame_Centre, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS },
|
||||
{ NULL, NULL }
|
||||
@@ -1015,7 +1197,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -1108,7 +1289,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -1286,8 +1466,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
|
||||
@@ -22,9 +22,6 @@ class wxFramePtr(wxWindowPtr):
|
||||
def Centre(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Centre,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Command(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_Command,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateStatusBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
|
||||
if val: val = wxStatusBarPtr(val)
|
||||
@@ -33,6 +30,10 @@ class wxFramePtr(wxWindowPtr):
|
||||
val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
|
||||
if val: val = wxToolBarPtr(val)
|
||||
return val
|
||||
def GetIcon(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetIcon,(self,) + _args, _kwargs)
|
||||
if val: val = wxIconPtr(val)
|
||||
return val
|
||||
def GetMenuBar(self, *_args, **_kwargs):
|
||||
val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
|
||||
if val: val = wxMenuBarPtr(val)
|
||||
@@ -57,6 +58,12 @@ class wxFramePtr(wxWindowPtr):
|
||||
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
|
||||
@@ -81,6 +88,19 @@ class wxFramePtr(wxWindowPtr):
|
||||
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 __repr__(self):
|
||||
return "<C wxFrame instance at %s>" % (self.this,)
|
||||
class wxFrame(wxFramePtr):
|
||||
|
||||
@@ -1638,6 +1638,170 @@ static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
|
||||
static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxBitmap * _result;
|
||||
wxBitmap * _arg0;
|
||||
wxRect * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
wxRect temp;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","rect", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
|
||||
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_GetSubBitmap. Expected _wxBitmap_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg1 = &temp;
|
||||
if (! wxRect_helper(_obj1, &_arg1))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
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;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
|
||||
static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxBitmap * _arg0;
|
||||
wxCursor * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","cursor", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_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_CopyFromCursor. Expected _wxBitmap_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
|
||||
static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxBitmap * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
|
||||
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_GetQuality. Expected _wxBitmap_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxBitmap_GetQuality(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
|
||||
static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxBitmap * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","q", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
|
||||
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_SetQuality. Expected _wxBitmap_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxBitmap_SetQuality(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
|
||||
static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -3647,7 +3811,7 @@ static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
if (_obj2)
|
||||
{
|
||||
_arg2 = (unsigned long*)long_LIST_helper(_obj2);
|
||||
_arg2 = (wxDash*)byte_LIST_helper(_obj2);
|
||||
if (_arg2 == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -8113,6 +8277,11 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, 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_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -8164,7 +8333,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxMask","_class_wxMask",0},
|
||||
{ "_wxPen","_class_wxPen",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -8214,7 +8382,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_EBool","_wxWindowID",0},
|
||||
{ "_class_wxRegion","_wxRegion",0},
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
|
||||
@@ -8313,8 +8480,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxSize","_wxSize",0},
|
||||
{ "_class_wxBitmap","_wxBitmap",0},
|
||||
{ "_class_wxMemoryDC","_wxMemoryDC",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxPalette","_wxPalette",0},
|
||||
{0,0,0}};
|
||||
|
||||
|
||||
@@ -59,6 +59,22 @@ class wxBitmapPtr :
|
||||
def SetSize(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxBitmap_SetSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSubBitmap(self, *_args, **_kwargs):
|
||||
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 CopyFromCursor(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxBitmap_CopyFromCursor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetQuality(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxBitmap_GetQuality,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetQuality(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxBitmap_SetQuality,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxBitmap instance at %s>" % (self.this,)
|
||||
class wxBitmap(wxBitmapPtr):
|
||||
|
||||
@@ -990,11 +990,13 @@ static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *k
|
||||
#define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxImage * _result;
|
||||
wxImage * _arg0;
|
||||
int _arg1;
|
||||
int _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","width","height", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
@@ -1008,11 +1010,17 @@ static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxImage_Rescale(_arg0,_arg1,_arg2);
|
||||
wxImage & _result_ref = wxImage_Rescale(_arg0,_arg1,_arg2);
|
||||
_result = (wxImage *) &_result_ref;
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -1686,7 +1694,121 @@ static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
||||
static PyObject *_wrap_wxImage_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxImage * _result;
|
||||
wxImage * _arg0;
|
||||
double _arg1;
|
||||
wxPoint * _arg2;
|
||||
bool _arg3 = (bool ) TRUE;
|
||||
wxPoint * _arg4 = (wxPoint *) NULL;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj2 = 0;
|
||||
int tempbool3 = (int) TRUE;
|
||||
wxPoint temp0;
|
||||
PyObject * _obj4 = 0;
|
||||
char *_kwnames[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OdO|iO:wxImage_Rotate",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3,&_obj4))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg2 = &temp;
|
||||
if (! wxPoint_helper(_obj2, &_arg2))
|
||||
return NULL;
|
||||
}
|
||||
_arg3 = (bool ) tempbool3;
|
||||
if (_obj4)
|
||||
{
|
||||
_arg4 = &temp0;
|
||||
if (! wxPoint_helper(_obj4, &_arg4))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxImage (wxImage_Rotate(_arg0,_arg1,*_arg2,_arg3,_arg4));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
|
||||
static PyObject *_wrap_wxImage_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxImage * _arg0;
|
||||
unsigned char _arg1;
|
||||
unsigned char _arg2;
|
||||
unsigned char _arg3;
|
||||
unsigned char _arg4;
|
||||
unsigned char _arg5;
|
||||
unsigned char _arg6;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","r1","g1","b1","r2","g2","b2", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbbbbb:wxImage_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxImage_Replace(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
|
||||
static PyObject *_wrap_wxImage_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
unsigned long _result;
|
||||
wxImage * _arg0;
|
||||
unsigned long _arg1 = (unsigned long ) (unsigned long)-1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","stopafter", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_CountColours",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (unsigned long )wxImage_CountColours(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("l",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyMethodDef imagecMethods[] = {
|
||||
{ "wxImage_CountColours", (PyCFunction) _wrap_wxImage_CountColours, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxImage_Replace", (PyCFunction) _wrap_wxImage_Replace, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxImage_Rotate", (PyCFunction) _wrap_wxImage_Rotate, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -1780,7 +1902,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPNGHandler","_class_wxPNGHandler",0},
|
||||
{ "_wxPen","_class_wxPen",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -1823,7 +1944,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_EBool","_wxWindowID",0},
|
||||
{ "_class_wxRegion","_wxRegion",0},
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -1927,8 +2047,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxSize","_wxSize",0},
|
||||
{ "_class_wxBitmap","_wxBitmap",0},
|
||||
{ "_class_wxMemoryDC","_wxMemoryDC",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxPalette","_wxPalette",0},
|
||||
{0,0,0}};
|
||||
|
||||
|
||||
@@ -162,6 +162,7 @@ class wxImagePtr :
|
||||
return val
|
||||
def Rescale(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val)
|
||||
return val
|
||||
def SetRGB(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
|
||||
@@ -224,6 +225,16 @@ class wxImagePtr :
|
||||
def HasMask(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Rotate(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
|
||||
if val: val = wxImagePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def Replace(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CountColours(self, *_args, **_kwargs):
|
||||
val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxImage instance at %s>" % (self.this,)
|
||||
class wxImage(wxImagePtr):
|
||||
|
||||
@@ -765,7 +765,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -859,7 +858,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -1047,8 +1045,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
|
||||
@@ -2166,7 +2166,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0},
|
||||
{ "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -2244,7 +2243,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -2386,8 +2384,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxMenuBar","_class_wxMenuBar",0},
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
|
||||
@@ -4391,7 +4391,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_wxPyPrintout","_class_wxPyPrintout",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -4506,7 +4505,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -4711,8 +4709,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_class_wxColourDialog","_wxColourDialog",0},
|
||||
{ "_class_wxPrintData","_wxPrintData",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
|
||||
@@ -223,6 +223,125 @@ static PyObject *_wrap_wxSizerItem_SetDimension(PyObject *self, PyObject *args,
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxSizerItem_SetRatioWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRatio(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxSizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSizerItem * _arg0;
|
||||
int _arg1;
|
||||
int _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","width","height", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSizerItem_SetRatioWH",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetRatioWH. Expected _wxSizerItem_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxSizerItem_SetRatioWH(_arg0,_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxSizerItem_SetRatioSize(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
|
||||
static PyObject *_wrap_wxSizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSizerItem * _arg0;
|
||||
wxSize * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
wxSize temp;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","size", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizerItem_SetRatioSize",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetRatioSize. Expected _wxSizerItem_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg1 = &temp;
|
||||
if (! wxSize_helper(_obj1, &_arg1))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxSizerItem_SetRatioSize(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxSizerItem_SetRatio(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
|
||||
static PyObject *_wrap_wxSizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSizerItem * _arg0;
|
||||
float _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","ratio", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Of:wxSizerItem_SetRatio",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetRatio. Expected _wxSizerItem_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxSizerItem_SetRatio(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxSizerItem_GetRatio(_swigobj) (_swigobj->GetRatio())
|
||||
static PyObject *_wrap_wxSizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
float _result;
|
||||
wxSizerItem * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetRatio",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetRatio. Expected _wxSizerItem_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (float )wxSizerItem_GetRatio(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("f",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxSizerItem_IsWindow(_swigobj) (_swigobj->IsWindow())
|
||||
static PyObject *_wrap_wxSizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -1386,6 +1505,62 @@ static PyObject *_wrap_wxBoxSizer_GetOrientation(PyObject *self, PyObject *args,
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
|
||||
static PyObject *_wrap_wxBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxBoxSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBoxSizer_RecalcSizes",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_RecalcSizes. Expected _wxBoxSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxBoxSizer_RecalcSizes(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
|
||||
static PyObject *_wrap_wxBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSize * _result;
|
||||
wxBoxSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBoxSizer_CalcMin",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_CalcMin. Expected _wxBoxSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxSize (wxBoxSizer_CalcMin(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxStaticBoxSizerTowxBoxSizer(void *ptr) {
|
||||
wxStaticBoxSizer *src;
|
||||
wxBoxSizer *dest;
|
||||
@@ -1471,9 +1646,205 @@ static PyObject *_wrap_wxStaticBoxSizer_GetStaticBox(PyObject *self, PyObject *a
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStaticBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
|
||||
static PyObject *_wrap_wxStaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStaticBoxSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_RecalcSizes",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBoxSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBoxSizer_RecalcSizes. Expected _wxStaticBoxSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStaticBoxSizer_RecalcSizes(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStaticBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
|
||||
static PyObject *_wrap_wxStaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSize * _result;
|
||||
wxStaticBoxSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_CalcMin",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBoxSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBoxSizer_CalcMin. Expected _wxStaticBoxSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxSize (wxStaticBoxSizer_CalcMin(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxNotebookSizerTowxSizer(void *ptr) {
|
||||
wxNotebookSizer *src;
|
||||
wxSizer *dest;
|
||||
src = (wxNotebookSizer *) ptr;
|
||||
dest = (wxSizer *) src;
|
||||
return (void *) dest;
|
||||
}
|
||||
|
||||
#define new_wxNotebookSizer(_swigarg0) (new wxNotebookSizer(_swigarg0))
|
||||
static PyObject *_wrap_new_wxNotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxNotebookSizer * _result;
|
||||
wxNotebook * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "nb", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxNotebookSizer",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxNotebookSizer. Expected _wxNotebook_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxNotebookSizer *)new_wxNotebookSizer(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebookSizer_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxNotebookSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
|
||||
static PyObject *_wrap_wxNotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxNotebookSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_RecalcSizes",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookSizer_RecalcSizes. Expected _wxNotebookSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxNotebookSizer_RecalcSizes(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxNotebookSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
|
||||
static PyObject *_wrap_wxNotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxSize * _result;
|
||||
wxNotebookSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_CalcMin",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookSizer_CalcMin. Expected _wxNotebookSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxSize (wxNotebookSizer_CalcMin(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxNotebookSizer_GetNotebook(_swigobj) (_swigobj->GetNotebook())
|
||||
static PyObject *_wrap_wxNotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxNotebook * _result;
|
||||
wxNotebookSizer * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_GetNotebook",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookSizer_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookSizer_GetNotebook. Expected _wxNotebookSizer_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxNotebook *)wxNotebookSizer_GetNotebook(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyMethodDef sizerscMethods[] = {
|
||||
{ "wxNotebookSizer_GetNotebook", (PyCFunction) _wrap_wxNotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxNotebookSizer_CalcMin", (PyCFunction) _wrap_wxNotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxNotebookSizer_RecalcSizes", (PyCFunction) _wrap_wxNotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxNotebookSizer", (PyCFunction) _wrap_new_wxNotebookSizer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStaticBoxSizer_CalcMin", (PyCFunction) _wrap_wxStaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxStaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_wxStaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxStaticBoxSizer", (PyCFunction) _wrap_new_wxStaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBoxSizer_CalcMin", (PyCFunction) _wrap_wxBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxBoxSizer_GetOrientation", (PyCFunction) _wrap_wxBoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxBoxSizer", (PyCFunction) _wrap_new_wxBoxSizer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPySizer__setSelf", (PyCFunction) _wrap_wxPySizer__setSelf, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -1509,6 +1880,10 @@ static PyMethodDef sizerscMethods[] = {
|
||||
{ "wxSizerItem_IsSpacer", (PyCFunction) _wrap_wxSizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_IsSizer", (PyCFunction) _wrap_wxSizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_IsWindow", (PyCFunction) _wrap_wxSizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_GetRatio", (PyCFunction) _wrap_wxSizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_SetRatio", (PyCFunction) _wrap_wxSizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_SetRatioSize", (PyCFunction) _wrap_wxSizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_SetRatioWH", (PyCFunction) _wrap_wxSizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_SetDimension", (PyCFunction) _wrap_wxSizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_CalcMin", (PyCFunction) _wrap_wxSizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxSizerItem_GetSize", (PyCFunction) _wrap_wxSizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -1551,6 +1926,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxMask","_class_wxMask",0},
|
||||
{ "_wxPen","_class_wxPen",0},
|
||||
{ "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
|
||||
{ "_class_wxNotebookSizer","_wxNotebookSizer",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_wxDataObject","_class_wxDataObject",0},
|
||||
{ "_wxStaticBox","_class_wxStaticBox",0},
|
||||
@@ -1558,13 +1934,14 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
{ "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
|
||||
{ "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
|
||||
{ "_wxBitmapButton","_class_wxBitmapButton",0},
|
||||
{ "_class_wxSizer","_class_wxNotebookSizer",SwigwxNotebookSizerTowxSizer},
|
||||
{ "_class_wxSizer","_wxNotebookSizer",SwigwxNotebookSizerTowxSizer},
|
||||
{ "_class_wxSizer","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
|
||||
{ "_class_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
|
||||
{ "_class_wxSizer","_class_wxBoxSizer",SwigwxBoxSizerTowxSizer},
|
||||
@@ -1657,7 +2034,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -1807,6 +2183,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
|
||||
{ "_class_wxJoystickEvent","_wxJoystickEvent",0},
|
||||
{ "_wxRegion","_class_wxRegion",0},
|
||||
{ "_wxSizer","_class_wxNotebookSizer",SwigwxNotebookSizerTowxSizer},
|
||||
{ "_wxSizer","_wxNotebookSizer",SwigwxNotebookSizerTowxSizer},
|
||||
{ "_wxSizer","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
|
||||
{ "_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
|
||||
{ "_wxSizer","_class_wxBoxSizer",SwigwxBoxSizerTowxSizer},
|
||||
@@ -1832,13 +2210,12 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
{ "_class_wxPalette","_wxPalette",0},
|
||||
{ "_wxFileDataObject","_class_wxFileDataObject",0},
|
||||
{ "_wxNotebookSizer","_class_wxNotebookSizer",0},
|
||||
{ "_class_wxEraseEvent","_wxEraseEvent",0},
|
||||
{ "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
|
||||
{ "_wxWindow","_class_wxWindow",0},
|
||||
|
||||
@@ -29,6 +29,18 @@ class wxSizerItemPtr :
|
||||
def SetDimension(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetDimension,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRatioWH(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetRatioWH,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRatioSize(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetRatioSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRatio(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_SetRatio,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRatio(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_GetRatio,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsWindow(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxSizerItem_IsWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -205,6 +217,13 @@ class wxBoxSizerPtr(wxSizerPtr):
|
||||
def GetOrientation(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxBoxSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxBoxSizer instance at %s>" % (self.this,)
|
||||
class wxBoxSizer(wxBoxSizerPtr):
|
||||
@@ -223,6 +242,13 @@ class wxStaticBoxSizerPtr(wxBoxSizerPtr):
|
||||
val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs)
|
||||
if val: val = wxStaticBoxPtr(val)
|
||||
return val
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxStaticBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxStaticBoxSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxStaticBoxSizer instance at %s>" % (self.this,)
|
||||
class wxStaticBoxSizer(wxStaticBoxSizerPtr):
|
||||
@@ -233,6 +259,31 @@ class wxStaticBoxSizer(wxStaticBoxSizerPtr):
|
||||
|
||||
|
||||
|
||||
class wxNotebookSizerPtr(wxSizerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def RecalcSizes(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxNotebookSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcMin(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxNotebookSizer_CalcMin,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetNotebook(self, *_args, **_kwargs):
|
||||
val = apply(sizersc.wxNotebookSizer_GetNotebook,(self,) + _args, _kwargs)
|
||||
if val: val = wxNotebookPtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxNotebookSizer instance at %s>" % (self.this,)
|
||||
class wxNotebookSizer(wxNotebookSizerPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(sizersc.new_wxNotebookSizer,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
@@ -3162,7 +3162,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -3254,7 +3253,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -3452,8 +3450,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
|
||||
@@ -9169,7 +9169,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxDataObject","_class_wxDataObject",0},
|
||||
{ "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
|
||||
{ "_wxPyDropSource","_class_wxPyDropSource",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -9227,7 +9226,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxDataFormat","_wxDataFormat",0},
|
||||
{ "_wxFont","_class_wxFont",0},
|
||||
{ "_class_wxPyDropTarget","_wxPyDropTarget",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -9367,8 +9365,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_class_wxPalette","_wxPalette",0},
|
||||
{ "_wxFileDataObject","_class_wxFileDataObject",0},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,378 @@ from controls import *
|
||||
|
||||
from events import *
|
||||
import wx
|
||||
class wxGridCellPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,windows2c=windows2c):
|
||||
if self.thisown == 1 :
|
||||
windows2c.delete_wxGridCell(self)
|
||||
def GetTextValue(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetTextValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetTextValue(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_SetTextValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def SetFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_SetFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def SetTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_SetTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def SetBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_SetBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBackgroundBrush(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetBackgroundBrush,(self,) + _args, _kwargs)
|
||||
if val: val = wxBrushPtr(val)
|
||||
return val
|
||||
def GetAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_SetAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCellBitmap(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_GetCellBitmap,(self,) + _args, _kwargs)
|
||||
if val: val = wxBitmapPtr(val)
|
||||
return val
|
||||
def SetCellBitmap(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridCell_SetCellBitmap,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxGridCell instance at %s>" % (self.this,)
|
||||
class wxGridCell(wxGridCellPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxGridCell,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxGridPtr(wxPanelPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def AdjustScrollbars(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_AdjustScrollbars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AppendCols(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_AppendCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AppendRows(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_AppendRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def BeginBatch(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_BeginBatch,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CellHitTest(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_CellHitTest,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CreateGrid(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_CreateGrid,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CurrentCellVisible(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_CurrentCellVisible,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteCols(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_DeleteCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteRows(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_DeleteRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EndBatch(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_EndBatch,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetBatchCount(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetBatchCount,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCell(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCell,(self,) + _args, _kwargs)
|
||||
if val: val = wxGridCellPtr(val)
|
||||
return val
|
||||
def GetCellAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCellAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetDefCellAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetDefCellAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCellBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCellBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetDefCellBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetDefCellBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetCells(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCells,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCellTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCellTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetDefCellTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetDefCellTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetCellTextFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCellTextFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def GetDefCellTextFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetDefCellTextFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def GetCellValue(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCellValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCols(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColumnWidth(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetColumnWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCurrentRect(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCurrentRect,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetCursorColumn(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCursorColumn,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCursorRow(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetCursorRow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEditable(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetEditable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHorizScrollBar(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetHorizScrollBar,(self,) + _args, _kwargs)
|
||||
if val: val = wxScrollBarPtr(val)
|
||||
return val
|
||||
def GetLabelAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetLabelAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabelBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetLabelBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetLabelSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetLabelSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetLabelTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetLabelTextColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
return val
|
||||
def GetLabelTextFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetLabelTextFont,(self,) + _args, _kwargs)
|
||||
if val: val = wxFontPtr(val)
|
||||
return val
|
||||
def GetLabelValue(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetLabelValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRowHeight(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetRowHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRows(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScrollPosX(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetScrollPosX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetScrollPosY(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetScrollPosY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetTextItem(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetTextItem,(self,) + _args, _kwargs)
|
||||
if val: val = wxTextCtrlPtr(val)
|
||||
return val
|
||||
def GetVertScrollBar(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetVertScrollBar,(self,) + _args, _kwargs)
|
||||
if val: val = wxScrollBarPtr(val)
|
||||
return val
|
||||
def InsertCols(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_InsertCols,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InsertRows(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_InsertRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def OnActivate(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_OnActivate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCellAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetCellAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefCellAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetDefCellAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCellBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetCellBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefCellBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetDefCellBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCellTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetCellTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefCellTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetDefCellTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCellTextFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetCellTextFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDefCellTextFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetDefCellTextFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCellValue(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetCellValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColumnWidth(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetColumnWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetDividerPen(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetDividerPen,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetEditable(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetEditable,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetGridCursor(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetGridCursor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelAlignment(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetLabelAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelBackgroundColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetLabelBackgroundColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelSize(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetLabelSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelTextColour(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetLabelTextColour,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelTextFont(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetLabelTextFont,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetLabelValue(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetLabelValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRowHeight(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetRowHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def UpdateDimensions(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_UpdateDimensions,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetEditInPlace(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_GetEditInPlace,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetEditInPlace(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGrid_SetEditInPlace,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxGrid instance at %s>" % (self.this,)
|
||||
class wxGrid(wxGridPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxGrid,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)
|
||||
wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)
|
||||
wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)
|
||||
wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)
|
||||
wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)
|
||||
wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)
|
||||
wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)
|
||||
wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)
|
||||
wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)
|
||||
|
||||
|
||||
|
||||
|
||||
class wxGridEventPtr(wxEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetRow(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridEvent_GetRow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCol(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridEvent_GetCol,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPosition(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridEvent_GetPosition,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def ControlDown(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridEvent_ControlDown,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ShiftDown(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridEvent_ShiftDown,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCell(self, *_args, **_kwargs):
|
||||
val = apply(windows2c.wxGridEvent_GetCell,(self,) + _args, _kwargs)
|
||||
if val: val = wxGridCellPtr(val)
|
||||
return val
|
||||
def __setattr__(self,name,value):
|
||||
if name == "m_row" :
|
||||
windows2c.wxGridEvent_m_row_set(self,value)
|
||||
return
|
||||
if name == "m_col" :
|
||||
windows2c.wxGridEvent_m_col_set(self,value)
|
||||
return
|
||||
if name == "m_x" :
|
||||
windows2c.wxGridEvent_m_x_set(self,value)
|
||||
return
|
||||
if name == "m_y" :
|
||||
windows2c.wxGridEvent_m_y_set(self,value)
|
||||
return
|
||||
if name == "m_control" :
|
||||
windows2c.wxGridEvent_m_control_set(self,value)
|
||||
return
|
||||
if name == "m_shift" :
|
||||
windows2c.wxGridEvent_m_shift_set(self,value)
|
||||
return
|
||||
if name == "m_cell" :
|
||||
windows2c.wxGridEvent_m_cell_set(self,value.this)
|
||||
return
|
||||
self.__dict__[name] = value
|
||||
def __getattr__(self,name):
|
||||
if name == "m_row" :
|
||||
return windows2c.wxGridEvent_m_row_get(self)
|
||||
if name == "m_col" :
|
||||
return windows2c.wxGridEvent_m_col_get(self)
|
||||
if name == "m_x" :
|
||||
return windows2c.wxGridEvent_m_x_get(self)
|
||||
if name == "m_y" :
|
||||
return windows2c.wxGridEvent_m_y_get(self)
|
||||
if name == "m_control" :
|
||||
return windows2c.wxGridEvent_m_control_get(self)
|
||||
if name == "m_shift" :
|
||||
return windows2c.wxGridEvent_m_shift_get(self)
|
||||
if name == "m_cell" :
|
||||
return wxGridCellPtr(windows2c.wxGridEvent_m_cell_get(self))
|
||||
raise AttributeError,name
|
||||
def __repr__(self):
|
||||
return "<C wxGridEvent instance at %s>" % (self.this,)
|
||||
class wxGridEvent(wxGridEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
|
||||
|
||||
|
||||
|
||||
class wxNotebookEventPtr(wxNotifyEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -250,6 +622,18 @@ class wxTaskBarIcon(wxTaskBarIconPtr):
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL
|
||||
wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL
|
||||
wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL
|
||||
wxEVT_GRID_SELECT_CELL = windows2c.wxEVT_GRID_SELECT_CELL
|
||||
wxEVT_GRID_CREATE_CELL = windows2c.wxEVT_GRID_CREATE_CELL
|
||||
wxEVT_GRID_CHANGE_LABELS = windows2c.wxEVT_GRID_CHANGE_LABELS
|
||||
wxEVT_GRID_CHANGE_SEL_LABEL = windows2c.wxEVT_GRID_CHANGE_SEL_LABEL
|
||||
wxEVT_GRID_CELL_CHANGE = windows2c.wxEVT_GRID_CELL_CHANGE
|
||||
wxEVT_GRID_CELL_LCLICK = windows2c.wxEVT_GRID_CELL_LCLICK
|
||||
wxEVT_GRID_CELL_RCLICK = windows2c.wxEVT_GRID_CELL_RCLICK
|
||||
wxEVT_GRID_LABEL_LCLICK = windows2c.wxEVT_GRID_LABEL_LCLICK
|
||||
wxEVT_GRID_LABEL_RCLICK = windows2c.wxEVT_GRID_LABEL_RCLICK
|
||||
wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE
|
||||
wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN
|
||||
wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP
|
||||
|
||||
@@ -1771,6 +1771,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxNotifyEvent","_class_wxNotifyEvent",0},
|
||||
{ "_class_wxToolBarBase","_wxToolBarBase",0},
|
||||
{ "_wxMask","_class_wxMask",0},
|
||||
{ "_wxGrid","_class_wxGrid",0},
|
||||
{ "_wxPen","_class_wxPen",0},
|
||||
{ "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
@@ -1781,7 +1782,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxChoice","_class_wxChoice",0},
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_wxNotebookEvent","_class_wxNotebookEvent",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -1821,6 +1821,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxMask","_wxMask",0},
|
||||
{ "_wxTextDataObject","_class_wxTextDataObject",0},
|
||||
{ "_class_wxKeyEvent","_wxKeyEvent",0},
|
||||
{ "_class_wxGrid","_wxGrid",0},
|
||||
{ "_wxColour","_class_wxColour",0},
|
||||
{ "_class_wxDialog","_wxDialog",0},
|
||||
{ "_class_wxFileDataObject","_wxFileDataObject",0},
|
||||
@@ -1855,6 +1856,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxEvent","_wxEvent",0},
|
||||
{ "_wxCheckListBox","_class_wxCheckListBox",0},
|
||||
{ "_wxSplitterEvent","_class_wxSplitterEvent",0},
|
||||
{ "_wxGridEvent","_class_wxGridEvent",0},
|
||||
{ "_wxRect","_class_wxRect",0},
|
||||
{ "_wxCommandEvent","_class_wxSashEvent",SwigwxSashEventTowxCommandEvent},
|
||||
{ "_wxCommandEvent","_wxSashEvent",SwigwxSashEventTowxCommandEvent},
|
||||
@@ -1899,7 +1901,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_class_wxSplitterEvent","_wxSplitterEvent",0},
|
||||
{ "_wxNotebook","_class_wxNotebook",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -1960,6 +1961,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxPoint","_wxPoint",0},
|
||||
{ "_wxRealPoint","_class_wxRealPoint",0},
|
||||
{ "_class_wxRadioBox","_wxRadioBox",0},
|
||||
{ "_wxGridCell","_class_wxGridCell",0},
|
||||
{ "_signed_short","_WXTYPE",0},
|
||||
{ "_signed_short","_short",0},
|
||||
{ "_wxMemoryDC","_class_wxMemoryDC",0},
|
||||
@@ -2071,12 +2073,14 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxGauge","_class_wxGauge",0},
|
||||
{ "_class_wxCheckListBox","_wxCheckListBox",0},
|
||||
{ "_class_wxBusyInfo","_wxBusyInfo",0},
|
||||
{ "_class_wxGridEvent","_wxGridEvent",0},
|
||||
{ "_class_wxCommandEvent","_class_wxSashEvent",SwigwxSashEventTowxCommandEvent},
|
||||
{ "_class_wxCommandEvent","_wxSashEvent",SwigwxSashEventTowxCommandEvent},
|
||||
{ "_class_wxCommandEvent","_wxCommandEvent",0},
|
||||
{ "_class_wxClientDC","_wxClientDC",0},
|
||||
{ "_class_wxSizeEvent","_wxSizeEvent",0},
|
||||
{ "_wxCustomDataObject","_class_wxCustomDataObject",0},
|
||||
{ "_class_wxGridCell","_wxGridCell",0},
|
||||
{ "_class_wxSize","_wxSize",0},
|
||||
{ "_class_wxBitmap","_wxBitmap",0},
|
||||
{ "_class_wxMemoryDC","_wxMemoryDC",0},
|
||||
@@ -2089,8 +2093,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxEvtHandler","_class_wxEvtHandler",0},
|
||||
{ "_wxMenuItem","_class_wxMenuItem",0},
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
|
||||
@@ -1153,6 +1153,33 @@ static PyObject *_wrap_wxPyApp_GetVendorName(PyObject *self, PyObject *args, PyO
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyApp_GetUseBestVisual(_swigobj) (_swigobj->GetUseBestVisual())
|
||||
static PyObject *_wrap_wxPyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxPyApp * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetUseBestVisual",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetUseBestVisual. Expected _wxPyApp_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxPyApp_GetUseBestVisual(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyApp_Dispatch(_swigobj) (_swigobj->Dispatch())
|
||||
static PyObject *_wrap_wxPyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -1559,6 +1586,36 @@ static PyObject *_wrap_wxPyApp_SetVendorName(PyObject *self, PyObject *args, PyO
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyApp_SetUseBestVisual(_swigobj,_swigarg0) (_swigobj->SetUseBestVisual(_swigarg0))
|
||||
static PyObject *_wrap_wxPyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPyApp * _arg0;
|
||||
bool _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
int tempbool1;
|
||||
char *_kwnames[] = { "self","flag", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyApp_SetUseBestVisual",_kwnames,&_argo0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetUseBestVisual. Expected _wxPyApp_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxPyApp_SetUseBestVisual(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxPyApp_GetStdIcon(_swigobj,_swigarg0) (_swigobj->GetStdIcon(_swigarg0))
|
||||
static PyObject *_wrap_wxPyApp_GetStdIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -1591,6 +1648,7 @@ static PyObject *_wrap_wxPyApp_GetStdIcon(PyObject *self, PyObject *args, PyObje
|
||||
|
||||
static PyMethodDef wxcMethods[] = {
|
||||
{ "wxPyApp_GetStdIcon", (PyCFunction) _wrap_wxPyApp_GetStdIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_SetUseBestVisual", (PyCFunction) _wrap_wxPyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_SetVendorName", (PyCFunction) _wrap_wxPyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_SetTopWindow", (PyCFunction) _wrap_wxPyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_SetPrintMode", (PyCFunction) _wrap_wxPyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -1604,6 +1662,7 @@ static PyMethodDef wxcMethods[] = {
|
||||
{ "wxPyApp_Initialized", (PyCFunction) _wrap_wxPyApp_Initialized, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_ExitMainLoop", (PyCFunction) _wrap_wxPyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_Dispatch", (PyCFunction) _wrap_wxPyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_GetUseBestVisual", (PyCFunction) _wrap_wxPyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_GetVendorName", (PyCFunction) _wrap_wxPyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_GetTopWindow", (PyCFunction) _wrap_wxPyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxPyApp_GetPrintMode", (PyCFunction) _wrap_wxPyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -1672,12 +1731,14 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxTreeCtrl","_wxTreeCtrl",0},
|
||||
{ "_wxMask","_class_wxMask",0},
|
||||
{ "_wxToolTip","_class_wxToolTip",0},
|
||||
{ "_wxGrid","_class_wxGrid",0},
|
||||
{ "_wxPNGHandler","_class_wxPNGHandler",0},
|
||||
{ "_class_wxColourData","_wxColourData",0},
|
||||
{ "_class_wxPageSetupDialogData","_wxPageSetupDialogData",0},
|
||||
{ "_wxPrinter","_class_wxPrinter",0},
|
||||
{ "_wxPen","_class_wxPen",0},
|
||||
{ "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
|
||||
{ "_class_wxNotebookSizer","_wxNotebookSizer",0},
|
||||
{ "_byte","_unsigned_char",0},
|
||||
{ "_wxDataObject","_class_wxDataObject",0},
|
||||
{ "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0},
|
||||
@@ -1688,7 +1749,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxSlider","_class_wxSlider",0},
|
||||
{ "_wxNotebookEvent","_class_wxNotebookEvent",0},
|
||||
{ "_wxPyPrintout","_class_wxPyPrintout",0},
|
||||
{ "_long","_wxDash",0},
|
||||
{ "_long","_unsigned_long",0},
|
||||
{ "_long","_signed_long",0},
|
||||
{ "_wxImageList","_class_wxImageList",0},
|
||||
@@ -1739,6 +1799,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxTextDataObject","_class_wxTextDataObject",0},
|
||||
{ "_class_wxKeyEvent","_wxKeyEvent",0},
|
||||
{ "_class_wxToolTip","_wxToolTip",0},
|
||||
{ "_class_wxGrid","_wxGrid",0},
|
||||
{ "_class_wxPNGHandler","_wxPNGHandler",0},
|
||||
{ "_wxColour","_class_wxColour",0},
|
||||
{ "_class_wxDialog","_wxDialog",0},
|
||||
@@ -1771,6 +1832,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxEvent","_wxEvent",0},
|
||||
{ "_wxCheckListBox","_class_wxCheckListBox",0},
|
||||
{ "_wxSplitterEvent","_class_wxSplitterEvent",0},
|
||||
{ "_wxGridEvent","_class_wxGridEvent",0},
|
||||
{ "_wxRect","_class_wxRect",0},
|
||||
{ "_wxCommandEvent","_class_wxCommandEvent",0},
|
||||
{ "_wxSizeEvent","_class_wxSizeEvent",0},
|
||||
@@ -1825,7 +1887,6 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxCloseEvent","_class_wxCloseEvent",0},
|
||||
{ "_class_wxSplitterEvent","_wxSplitterEvent",0},
|
||||
{ "_wxNotebook","_class_wxNotebook",0},
|
||||
{ "_unsigned_long","_wxDash",0},
|
||||
{ "_unsigned_long","_long",0},
|
||||
{ "_class_wxRect","_wxRect",0},
|
||||
{ "_class_wxDC","_wxDC",0},
|
||||
@@ -1853,6 +1914,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_signed_int","_wxWindowID",0},
|
||||
{ "_signed_int","_int",0},
|
||||
{ "_class_wxTextCtrl","_wxTextCtrl",0},
|
||||
{ "_class_wxListItemAttr","_wxListItemAttr",0},
|
||||
{ "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
|
||||
{ "_wxMetaFileDC","_class_wxMetaFileDC",0},
|
||||
{ "_class_wxTextDataObject","_wxTextDataObject",0},
|
||||
@@ -1892,6 +1954,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxPoint","_wxPoint",0},
|
||||
{ "_wxRealPoint","_class_wxRealPoint",0},
|
||||
{ "_class_wxRadioBox","_wxRadioBox",0},
|
||||
{ "_wxGridCell","_class_wxGridCell",0},
|
||||
{ "_class_wxBoxSizer","_wxBoxSizer",0},
|
||||
{ "_signed_short","_WXTYPE",0},
|
||||
{ "_signed_short","_short",0},
|
||||
@@ -2025,11 +2088,13 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxGauge","_class_wxGauge",0},
|
||||
{ "_class_wxCheckListBox","_wxCheckListBox",0},
|
||||
{ "_class_wxBusyInfo","_wxBusyInfo",0},
|
||||
{ "_class_wxGridEvent","_wxGridEvent",0},
|
||||
{ "_class_wxCommandEvent","_wxCommandEvent",0},
|
||||
{ "_class_wxClientDC","_wxClientDC",0},
|
||||
{ "_class_wxSizeEvent","_wxSizeEvent",0},
|
||||
{ "_class_wxListCtrl","_wxListCtrl",0},
|
||||
{ "_wxCustomDataObject","_class_wxCustomDataObject",0},
|
||||
{ "_class_wxGridCell","_wxGridCell",0},
|
||||
{ "_class_wxSize","_wxSize",0},
|
||||
{ "_class_wxBitmap","_wxBitmap",0},
|
||||
{ "_class_wxMemoryDC","_wxMemoryDC",0},
|
||||
@@ -2044,9 +2109,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxScrollBar","_wxScrollBar",0},
|
||||
{ "_class_wxColourDialog","_wxColourDialog",0},
|
||||
{ "_class_wxPrintData","_wxPrintData",0},
|
||||
{ "_wxDash","_unsigned_long",0},
|
||||
{ "_wxDash","_long",0},
|
||||
{ "_class_wxScrolledWindow","_wxScrolledWindow",0},
|
||||
{ "_wxListItemAttr","_class_wxListItemAttr",0},
|
||||
{ "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
|
||||
{ "_wxKeyEvent","_class_wxKeyEvent",0},
|
||||
{ "_wxMoveEvent","_class_wxMoveEvent",0},
|
||||
@@ -2055,6 +2119,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxPalette","_wxPalette",0},
|
||||
{ "_wxFileDataObject","_class_wxFileDataObject",0},
|
||||
{ "_class_wxQueryLayoutInfoEvent","_wxQueryLayoutInfoEvent",0},
|
||||
{ "_wxNotebookSizer","_class_wxNotebookSizer",0},
|
||||
{ "_class_wxEraseEvent","_wxEraseEvent",0},
|
||||
{ "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0},
|
||||
{ "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
|
||||
@@ -2156,6 +2221,7 @@ SWIGEXPORT(void) initwxc() {
|
||||
PyDict_SetItemString(d,"wxPROCESS_ENTER", PyInt_FromLong((long) wxPROCESS_ENTER));
|
||||
PyDict_SetItemString(d,"wxPASSWORD", PyInt_FromLong((long) wxPASSWORD));
|
||||
PyDict_SetItemString(d,"wxTE_PROCESS_ENTER", PyInt_FromLong((long) wxTE_PROCESS_ENTER));
|
||||
PyDict_SetItemString(d,"wxTE_PROCESS_TAB", PyInt_FromLong((long) wxTE_PROCESS_TAB));
|
||||
PyDict_SetItemString(d,"wxTE_PASSWORD", PyInt_FromLong((long) wxTE_PASSWORD));
|
||||
PyDict_SetItemString(d,"wxTE_READONLY", PyInt_FromLong((long) wxTE_READONLY));
|
||||
PyDict_SetItemString(d,"wxTE_RICH", PyInt_FromLong((long) wxTE_RICH));
|
||||
|
||||
@@ -63,6 +63,9 @@ class wxPyAppPtr(wxEvtHandlerPtr):
|
||||
def GetVendorName(self, *_args, **_kwargs):
|
||||
val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetUseBestVisual(self, *_args, **_kwargs):
|
||||
val = apply(wxc.wxPyApp_GetUseBestVisual,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Dispatch(self, *_args, **_kwargs):
|
||||
val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -102,6 +105,9 @@ class wxPyAppPtr(wxEvtHandlerPtr):
|
||||
def SetVendorName(self, *_args, **_kwargs):
|
||||
val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetUseBestVisual(self, *_args, **_kwargs):
|
||||
val = apply(wxc.wxPyApp_SetUseBestVisual,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetStdIcon(self, *_args, **_kwargs):
|
||||
val = apply(wxc.wxPyApp_GetStdIcon,(self,) + _args, _kwargs)
|
||||
if val: val = wxIconPtr(val) ; val.thisown = 1
|
||||
@@ -225,6 +231,7 @@ wxLB_HSCROLL = wxc.wxLB_HSCROLL
|
||||
wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
|
||||
wxPASSWORD = wxc.wxPASSWORD
|
||||
wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
|
||||
wxTE_PROCESS_TAB = wxc.wxTE_PROCESS_TAB
|
||||
wxTE_PASSWORD = wxc.wxTE_PASSWORD
|
||||
wxTE_READONLY = wxc.wxTE_READONLY
|
||||
wxTE_RICH = wxc.wxTE_RICH
|
||||
|
||||
Reference in New Issue
Block a user