/*
- * FILE : html.cpp
+ * FILE : ./html.cpp
*
* This file was automatically generated by :
* Simplified Wrapper and Interface Generator (SWIG)
#if wxUSE_FS_ZIP
wxFileSystem::AddHandler(new wxZipFSHandler);
#endif
+ #if wxUSE_FS_INET
+// wxFileSystem::AddHandler(new wxInternetFSHandler);
+ #endif
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
#if wxUSE_FS_ZIP
wxFileSystem::AddHandler(new wxZipFSHandler);
#endif
+ #if wxUSE_FS_INET
+// wxFileSystem::AddHandler(new wxInternetFSHandler);
+ #endif
%}
//----------------------------------------------------------------------
wxNAND, // (NOT src) OR (NOT dst)
wxOR, // src OR dst
wxSET, // 1
- wxSRC_OR, // source _bitmap_ OR destination
- wxSRC_AND // source _bitmap_ AND destination
+// wxSRC_OR, // source _bitmap_ OR destination
+// wxSRC_AND // source _bitmap_ AND destination
} form_ops_t;
enum _Virtual_keycodes {
wxEVT_SCROLL_PAGEUP,
wxEVT_SCROLL_PAGEDOWN,
wxEVT_SCROLL_THUMBTRACK,
+ wxEVT_SCROLL_THUMBRELEASE,
/*
* Scrolled Window
wxEVT_SCROLLWIN_PAGEUP,
wxEVT_SCROLLWIN_PAGEDOWN,
wxEVT_SCROLLWIN_THUMBTRACK,
+ wxEVT_SCROLLWIN_THUMBRELEASE,
wxEVT_SIZE = wxEVT_FIRST + 200,
wxEVT_MOVE,
def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
win.Connect(id1, id2, cmd, func)
+
# Scrolling
def EVT_SCROLL(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
+ win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
def EVT_SCROLL_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
def EVT_SCROLL_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
+def EVT_SCROLL_THUMBRELEASE(win, func):
+ win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
+
# Scrolling, with an id
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
+ win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
def EVT_COMMAND_SCROLL_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
+def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
+ win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
+
#---
def EVT_SCROLLWIN(win, func):
- win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
def EVT_SCROLLWIN_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
def EVT_SCROLLWIN_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+def EVT_SCROLLWIN_THUMBRELEASE(win, func):
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
+
# Scrolling, with an id
def EVT_COMMAND_SCROLLWIN(win, id, func):
- win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
+
+
# Convenience commands
def EVT_BUTTON(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
int GetPageSize();
int GetThumbPosition();
int GetThumbSize();
+ %name(GetThumbLength) int GetThumbSize(); // to match the docs
void SetThumbPosition(int viewStart);
void SetScrollbar(int position, int thumbSize,
int range, int pageSize,
//size_t GetSelections(wxArrayTreeItemIds& selection);
%addmethods {
PyObject* GetSelections() {
+ bool doSave = wxPyRestoreThread();
PyObject* rval = PyList_New(0);
wxArrayTreeItemIds array;
size_t num, x;
"wxTreeItemId");
PyList_Append(rval, item);
}
+ wxPySaveThread(doSave);
return rval;
}
}
// I'll do it this way to use long-lived objects and not have to
// worry about when python may delete the object.
%addmethods {
- wxBrush(wxColour* colour, int style=wxSOLID) {
+ wxBrush(const wxColour* colour, int style=wxSOLID) {
return wxTheBrushList->FindOrCreateBrush(*colour, style);
}
// NO Destructor.
}
+// wxBrush(const wxColour& colour, int style=wxSOLID);
+
wxColour& GetColour();
wxBitmap * GetStipple();
int GetStyle();
public:
wxScreenDC();
- bool StartDrawingOnTop(wxWindow* window);
- %name(StartDrawingOnTopRect) bool StartDrawingOnTop(wxRect* rect = NULL);
+ %name(StartDrawingOnTopWin) bool StartDrawingOnTop(wxWindow* window);
+ bool StartDrawingOnTop(wxRect* rect = NULL);
bool EndDrawingOnTop();
};
{ "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
{ "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
{ "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
+ { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
{ "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
{ "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
{ "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
def GetThumbSize(self, *_args, **_kwargs):
val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs)
return val
+ def GetThumbLength(self, *_args, **_kwargs):
+ val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs)
+ return val
def SetThumbPosition(self, *_args, **_kwargs):
val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs)
return val
}
static PyObject * wxTreeCtrl_GetSelections(wxTreeCtrl *self) {
+ bool doSave = wxPyRestoreThread();
PyObject* rval = PyList_New(0);
wxArrayTreeItemIds array;
size_t num, x;
"wxTreeItemId");
PyList_Append(rval, item);
}
+ wxPySaveThread(doSave);
return rval;
}
static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
return _resultobj;
}
-static wxBrush *new_wxBrush(wxColour *colour,int style) {
+static wxBrush *new_wxBrush(const wxColour *colour,int style) {
return wxTheBrushList->FindOrCreateBrush(*colour, style);
}
return _resultobj;
}
-#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
-static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
+static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
bool _result;
wxScreenDC * _arg0;
char *_kwnames[] = { "self","window", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_argo1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
return NULL;
}
}
if (_argo1) {
if (_argo1 == Py_None) { _arg1 = NULL; }
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTop. Expected _wxWindow_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
+ _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxScreenDC_StartDrawingOnTopRect(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
-static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
+static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
bool _result;
wxScreenDC * _arg0;
char *_kwnames[] = { "self","rect", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTopRect",_kwnames,&_argo0,&_obj1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopRect. Expected _wxScreenDC_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
return NULL;
}
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxScreenDC_StartDrawingOnTopRect(_arg0,_arg1);
+ _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
} _resultobj = Py_BuildValue("i",_result);
{ "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
{ "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
{ "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
- { "wxScreenDC_StartDrawingOnTopRect", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopRect, METH_VARARGS | METH_KEYWORDS },
{ "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
+ { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
{ "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
{ "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
{ "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
def __init__(self,this):
self.this = this
self.thisown = 0
+ def StartDrawingOnTopWin(self, *_args, **_kwargs):
+ val = apply(gdic.wxScreenDC_StartDrawingOnTopWin,(self,) + _args, _kwargs)
+ return val
def StartDrawingOnTop(self, *_args, **_kwargs):
val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
return val
- def StartDrawingOnTopRect(self, *_args, **_kwargs):
- val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self,) + _args, _kwargs)
- return val
def EndDrawingOnTop(self, *_args, **_kwargs):
val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
return val
return _resultobj;
}
-#define wxStatusBar_DrawField(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawField(_swigarg0,_swigarg1))
-static PyObject *_wrap_wxStatusBar_DrawField(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxStatusBar * _arg0;
- wxDC * _arg1;
- int _arg2;
- PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","dc","i", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxStatusBar_DrawField",_kwnames,&_argo0,&_argo1,&_arg2))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawField. Expected _wxStatusBar_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawField. Expected _wxDC_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxStatusBar_DrawField(_arg0,*_arg1,_arg2);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define wxStatusBar_DrawFieldText(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawFieldText(_swigarg0,_swigarg1))
-static PyObject *_wrap_wxStatusBar_DrawFieldText(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
+static PyObject *_wrap_wxStatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ int _result;
wxStatusBar * _arg0;
- wxDC * _arg1;
- int _arg2;
PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","dc","i", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxStatusBar_DrawFieldText",_kwnames,&_argo0,&_argo1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderX",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawFieldText. Expected _wxStatusBar_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawFieldText. Expected _wxDC_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxStatusBar_DrawFieldText(_arg0,*_arg1,_arg2);
+ _result = (int )wxStatusBar_GetBorderX(_arg0);
wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxStatusBar_InitColours(_swigobj) (_swigobj->InitColours())
-static PyObject *_wrap_wxStatusBar_InitColours(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
+static PyObject *_wrap_wxStatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ int _result;
wxStatusBar * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_InitColours",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderY",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_InitColours. Expected _wxStatusBar_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxStatusBar_InitColours(_arg0);
+ _result = (int )wxStatusBar_GetBorderY(_arg0);
wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
return _resultobj;
}
+#define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
+static PyObject *_wrap_wxStatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStatusBar * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","height", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStatusBar_SetMinHeight",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxStatusBar_SetMinHeight(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; }
static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "wxToolBarToolBase_GetControl", (PyCFunction) _wrap_wxToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
{ "wxToolBarToolBase_GetId", (PyCFunction) _wrap_wxToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
{ "wxToolBarToolBase_Destroy", (PyCFunction) _wrap_wxToolBarToolBase_Destroy, METH_VARARGS | METH_KEYWORDS },
+ { "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
{ "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
{ "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS },
{ "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS },
- { "wxStatusBar_InitColours", (PyCFunction) _wrap_wxStatusBar_InitColours, METH_VARARGS | METH_KEYWORDS },
- { "wxStatusBar_DrawFieldText", (PyCFunction) _wrap_wxStatusBar_DrawFieldText, METH_VARARGS | METH_KEYWORDS },
- { "wxStatusBar_DrawField", (PyCFunction) _wrap_wxStatusBar_DrawField, METH_VARARGS | METH_KEYWORDS },
+ { "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS },
+ { "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS },
{ "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS },
{ "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS },
{ "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS },
def GetStatusText(self, *_args, **_kwargs):
val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs)
return val
- def DrawField(self, *_args, **_kwargs):
- val = apply(stattoolc.wxStatusBar_DrawField,(self,) + _args, _kwargs)
+ def GetBorderX(self, *_args, **_kwargs):
+ val = apply(stattoolc.wxStatusBar_GetBorderX,(self,) + _args, _kwargs)
return val
- def DrawFieldText(self, *_args, **_kwargs):
- val = apply(stattoolc.wxStatusBar_DrawFieldText,(self,) + _args, _kwargs)
- return val
- def InitColours(self, *_args, **_kwargs):
- val = apply(stattoolc.wxStatusBar_InitColours,(self,) + _args, _kwargs)
+ def GetBorderY(self, *_args, **_kwargs):
+ val = apply(stattoolc.wxStatusBar_GetBorderY,(self,) + _args, _kwargs)
return val
def SetFieldsCount(self, *_args, **_kwargs):
val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs)
def SetStatusWidths(self, *_args, **_kwargs):
val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs)
return val
+ def SetMinHeight(self, *_args, **_kwargs):
+ val = apply(stattoolc.wxStatusBar_SetMinHeight,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxStatusBar instance at %s>" % (self.this,)
class wxStatusBar(wxStatusBarPtr):
PyDict_SetItemString(d,"wxNAND", PyInt_FromLong((long) wxNAND));
PyDict_SetItemString(d,"wxOR", PyInt_FromLong((long) wxOR));
PyDict_SetItemString(d,"wxSET", PyInt_FromLong((long) wxSET));
- PyDict_SetItemString(d,"wxSRC_OR", PyInt_FromLong((long) wxSRC_OR));
- PyDict_SetItemString(d,"wxSRC_AND", PyInt_FromLong((long) wxSRC_AND));
PyDict_SetItemString(d,"WXK_BACK", PyInt_FromLong((long) WXK_BACK));
PyDict_SetItemString(d,"WXK_TAB", PyInt_FromLong((long) WXK_TAB));
PyDict_SetItemString(d,"WXK_RETURN", PyInt_FromLong((long) WXK_RETURN));
PyDict_SetItemString(d,"wxEVT_SCROLL_PAGEUP", PyInt_FromLong((long) wxEVT_SCROLL_PAGEUP));
PyDict_SetItemString(d,"wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong((long) wxEVT_SCROLL_PAGEDOWN));
PyDict_SetItemString(d,"wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong((long) wxEVT_SCROLL_THUMBTRACK));
+ PyDict_SetItemString(d,"wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong((long) wxEVT_SCROLL_THUMBRELEASE));
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_TOP", PyInt_FromLong((long) wxEVT_SCROLLWIN_TOP));
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong((long) wxEVT_SCROLLWIN_BOTTOM));
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong((long) wxEVT_SCROLLWIN_LINEUP));
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong((long) wxEVT_SCROLLWIN_PAGEUP));
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong((long) wxEVT_SCROLLWIN_PAGEDOWN));
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong((long) wxEVT_SCROLLWIN_THUMBTRACK));
+ PyDict_SetItemString(d,"wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong((long) wxEVT_SCROLLWIN_THUMBRELEASE));
PyDict_SetItemString(d,"wxEVT_SIZE", PyInt_FromLong((long) wxEVT_SIZE));
PyDict_SetItemString(d,"wxEVT_MOVE", PyInt_FromLong((long) wxEVT_MOVE));
PyDict_SetItemString(d,"wxEVT_CLOSE_WINDOW", PyInt_FromLong((long) wxEVT_CLOSE_WINDOW));
wxNAND = wxc.wxNAND
wxOR = wxc.wxOR
wxSET = wxc.wxSET
-wxSRC_OR = wxc.wxSRC_OR
-wxSRC_AND = wxc.wxSRC_AND
WXK_BACK = wxc.WXK_BACK
WXK_TAB = wxc.WXK_TAB
WXK_RETURN = wxc.WXK_RETURN
wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
+wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
+wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
wxEVT_SIZE = wxc.wxEVT_SIZE
wxEVT_MOVE = wxc.wxEVT_MOVE
wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
win.Connect(id1, id2, cmd, func)
+
# Scrolling
def EVT_SCROLL(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
+ win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
def EVT_SCROLL_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
def EVT_SCROLL_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
+def EVT_SCROLL_THUMBRELEASE(win, func):
+ win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
+
# Scrolling, with an id
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
+ win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
def EVT_COMMAND_SCROLL_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
+def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
+ win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
+
#---
def EVT_SCROLLWIN(win, func):
- win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
def EVT_SCROLLWIN_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
def EVT_SCROLLWIN_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+def EVT_SCROLLWIN_THUMBRELEASE(win, func):
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
+
# Scrolling, with an id
def EVT_COMMAND_SCROLLWIN(win, id, func):
- win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
+
+
# Convenience commands
def EVT_BUTTON(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
}
int GetFieldsCount(void);
wxString GetStatusText(int ir = 0);
- void DrawField(wxDC& dc, int i);
- void DrawFieldText(wxDC& dc, int i);
- void InitColours(void);
+ int GetBorderX();
+ int GetBorderY();
+
+// void DrawField(wxDC& dc, int i);
+// void DrawFieldText(wxDC& dc, int i);
+// void InitColours(void);
void SetFieldsCount(int number = 1);
void SetStatusText(const wxString& text, int i = 0);
void SetStatusWidths(int LCOUNT, int* choices);
+ void SetMinHeight(int height);
};
wxpicon ICON "wxp.ico"
#include "wx/msw/wx.rc"
+#include "wx/html/msw/wxhtml.rc"