Added SendSizeEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
628c7f79d4
commit
f725aedbae
@ -187,6 +187,9 @@ public:
|
|||||||
virtual wxToolBar *GetToolBar() const { return m_frameToolBar; }
|
virtual wxToolBar *GetToolBar() const { return m_frameToolBar; }
|
||||||
virtual void SetToolBar(wxToolBar *toolbar) { m_frameToolBar = toolbar; }
|
virtual void SetToolBar(wxToolBar *toolbar) { m_frameToolBar = toolbar; }
|
||||||
|
|
||||||
|
// sends a size event to the window using its current size -- this has an
|
||||||
|
// effect of refreshing the window layout
|
||||||
|
virtual void SendSizeEvent();
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -1529,6 +1529,34 @@ static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObje
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxFrame_SendSizeEvent(_swigobj) (_swigobj->SendSizeEvent())
|
||||||
|
static PyObject *_wrap_wxFrame_SendSizeEvent(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_SendSizeEvent",_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_SendSizeEvent. Expected _wxFrame_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxFrame_SendSizeEvent(_arg0);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
static void *SwigwxDialogTowxTopLevelWindow(void *ptr) {
|
static void *SwigwxDialogTowxTopLevelWindow(void *ptr) {
|
||||||
wxDialog *src;
|
wxDialog *src;
|
||||||
wxTopLevelWindow *dest;
|
wxTopLevelWindow *dest;
|
||||||
@ -2620,6 +2648,7 @@ static PyMethodDef framescMethods[] = {
|
|||||||
{ "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxFrame_SendSizeEvent", (PyCFunction) _wrap_wxFrame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
|
{ "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
|
{ "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS },
|
{ "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@ -140,6 +140,9 @@ class wxFramePtr(wxTopLevelWindowPtr):
|
|||||||
def SetToolBar(self, *_args, **_kwargs):
|
def SetToolBar(self, *_args, **_kwargs):
|
||||||
val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
|
val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def SendSizeEvent(self, *_args, **_kwargs):
|
||||||
|
val = apply(framesc.wxFrame_SendSizeEvent,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<C wxFrame instance at %s>" % (self.this,)
|
return "<C wxFrame instance at %s>" % (self.this,)
|
||||||
class wxFrame(wxFramePtr):
|
class wxFrame(wxFramePtr):
|
||||||
|
Loading…
Reference in New Issue
Block a user