reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-11-11 08:01:12 +00:00
parent 17949b1bff
commit 5172800e29
24 changed files with 7335 additions and 3447 deletions

View File

@ -7010,5 +7010,124 @@ class FontPickerEvent(_core.CommandEvent):
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
#---------------------------------------------------------------------------
CP_DEFAULT_STYLE = _controls_.CP_DEFAULT_STYLE
CP_NO_TLW_RESIZE = _controls_.CP_NO_TLW_RESIZE
class CollapsiblePane(_core.Control):
"""
A collapsable pane is a container with an embedded button-like
control which can be used by the user to collapse or expand the pane's
contents.
Once constructed you should use the `GetPane` function to access the
pane and add your controls inside it (i.e. use the window returned
from `GetPane` as the parent for the controls which must go in the
pane, NOT the wx.CollapsiblePane itself!).
Note that because of its nature of control which can dynamically (and
drastically) change its size at run-time under user-input, when
putting a wx.CollapsiblePane inside a `wx.Sizer` you should be careful
to add it with a proportion value of zero; this is because otherwise
all other windows with non-zero proportion values would automatically
get resized each time the user expands or collapses the pane window,
usually resulting a weird, flickering effect.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__init__(self, Window parent, int winid=-1, String label=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator,
String name=CollapsiblePaneNameStr) -> CollapsiblePane
Create and show a wx.CollapsiblePane
"""
_controls_.CollapsiblePane_swiginit(self,_controls_.new_CollapsiblePane(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int winid=-1, String label=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator,
String name=CollapsiblePaneNameStr) -> bool
"""
return _controls_.CollapsiblePane_Create(*args, **kwargs)
def Collapse(*args, **kwargs):
"""
Collapse(self, bool collapse=True)
Collapses or expands the pane window.
"""
return _controls_.CollapsiblePane_Collapse(*args, **kwargs)
def Expand(*args, **kwargs):
"""
Expand(self)
Same as Collapse(False).
"""
return _controls_.CollapsiblePane_Expand(*args, **kwargs)
def IsCollapsed(*args, **kwargs):
"""
IsCollapsed(self) -> bool
Returns ``True`` if the pane window is currently hidden.
"""
return _controls_.CollapsiblePane_IsCollapsed(*args, **kwargs)
def IsExpanded(*args, **kwargs):
"""
IsExpanded(self) -> bool
Returns ``True`` if the pane window is currently shown.
"""
return _controls_.CollapsiblePane_IsExpanded(*args, **kwargs)
def GetPane(*args, **kwargs):
"""
GetPane(self) -> Window
Returns a reference to the pane window. Use the returned `wx.Window`
as the parent of widgets to make them part of the collapsible area.
"""
return _controls_.CollapsiblePane_GetPane(*args, **kwargs)
_controls_.CollapsiblePane_swigregister(CollapsiblePane)
CollapsiblePaneNameStr = cvar.CollapsiblePaneNameStr
def PreCollapsiblePane(*args, **kwargs):
"""
PreCollapsiblePane() -> CollapsiblePane
Precreate a wx.CollapsiblePane for 2-phase creation.
"""
val = _controls_.new_PreCollapsiblePane(*args, **kwargs)
return val
wxEVT_COMMAND_COLLPANE_CHANGED = _controls_.wxEVT_COMMAND_COLLPANE_CHANGED
EVT_COLLAPSIBLEPANE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLLPANE_CHANGED, 1 )
class CollapsiblePaneEvent(_core.CommandEvent):
"""Proxy of C++ CollapsiblePaneEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, Object generator, int id, bool collapsed) -> CollapsiblePaneEvent"""
_controls_.CollapsiblePaneEvent_swiginit(self,_controls_.new_CollapsiblePaneEvent(*args, **kwargs))
def GetCollapsed(*args, **kwargs):
"""GetCollapsed(self) -> bool"""
return _controls_.CollapsiblePaneEvent_GetCollapsed(*args, **kwargs)
def SetCollapsed(*args, **kwargs):
"""SetCollapsed(self, bool c)"""
return _controls_.CollapsiblePaneEvent_SetCollapsed(*args, **kwargs)
_controls_.CollapsiblePaneEvent_swigregister(CollapsiblePaneEvent)

File diff suppressed because one or more lines are too long

View File

@ -1881,10 +1881,14 @@ class Process(_core.EvtHandler):
def __init__(self, *args, **kwargs):
"""__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
_misc_.Process_swiginit(self,_misc_.new_Process(*args, **kwargs))
self._setCallbackInfo(self, Process)
self._setCallbackInfo(self, Process); self.this.own(False)
__swig_destroy__ = _misc_.delete_Process
__del__ = lambda self : None;
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
return _misc_.Process__setCallbackInfo(*args, **kwargs)
def GetPid(*args, **kwargs):
"""
GetPid(self) -> long
@ -1893,10 +1897,6 @@ class Process(_core.EvtHandler):
"""
return _misc_.Process_GetPid(*args, **kwargs)
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
return _misc_.Process__setCallbackInfo(*args, **kwargs)
def OnTerminate(*args, **kwargs):
"""OnTerminate(self, int pid, int status)"""
return _misc_.Process_OnTerminate(*args, **kwargs)
@ -5397,7 +5397,6 @@ class DropTarget(object):
"""GetDefaultAction(self) -> int"""
return _misc_.DropTarget_GetDefaultAction(*args, **kwargs)
Data = property(GetData,doc="See `GetData`")
DataObject = property(GetDataObject,SetDataObject,doc="See `GetDataObject` and `SetDataObject`")
DefaultAction = property(GetDefaultAction,SetDefaultAction,doc="See `GetDefaultAction` and `SetDefaultAction`")
_misc_.DropTarget_swigregister(DropTarget)

View File

@ -14445,34 +14445,6 @@ fail:
}
SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
long result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
}
arg1 = reinterpret_cast< wxPyProcess * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (long)((wxPyProcess const *)arg1)->GetPid();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Process__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
@ -14508,6 +14480,34 @@ fail:
}
SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
long result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
}
arg1 = reinterpret_cast< wxPyProcess * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (long)((wxPyProcess const *)arg1)->GetPid();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Process_OnTerminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
@ -39425,8 +39425,8 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"delete_Process", (PyCFunction)_wrap_delete_Process, METH_O, NULL},
{ (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
{ (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
{ (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Process_Redirect", (PyCFunction)_wrap_Process_Redirect, METH_O, NULL},
{ (char *)"Process_IsRedirected", (PyCFunction)_wrap_Process_IsRedirected, METH_O, NULL},

View File

@ -3850,6 +3850,10 @@ class PrintData(_core.Object):
"""GetOrientation(self) -> int"""
return _windows_.PrintData_GetOrientation(*args, **kwargs)
def IsOrientationReversed(*args, **kwargs):
"""IsOrientationReversed(self) -> bool"""
return _windows_.PrintData_IsOrientationReversed(*args, **kwargs)
def IsOk(*args, **kwargs):
"""IsOk(self) -> bool"""
return _windows_.PrintData_IsOk(*args, **kwargs)
@ -3903,6 +3907,10 @@ class PrintData(_core.Object):
"""SetOrientation(self, int orient)"""
return _windows_.PrintData_SetOrientation(*args, **kwargs)
def SetOrientationReversed(*args, **kwargs):
"""SetOrientationReversed(self, bool reversed)"""
return _windows_.PrintData_SetOrientationReversed(*args, **kwargs)
def SetPrinterName(*args, **kwargs):
"""SetPrinterName(self, String name)"""
return _windows_.PrintData_SetPrinterName(*args, **kwargs)

View File

@ -23702,6 +23702,36 @@ fail:
}
SWIGINTERN PyObject *_wrap_PrintData_IsOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData const *""'");
}
arg1 = reinterpret_cast< wxPrintData * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)((wxPrintData const *)arg1)->IsOrientationReversed();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
@ -24112,6 +24142,44 @@ fail:
}
SWIGINTERN PyObject *_wrap_PrintData_SetOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char * kwnames[] = {
(char *) "self",(char *) "reversed", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientationReversed",kwnames,&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData *""'");
}
arg1 = reinterpret_cast< wxPrintData * >(argp1);
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetOrientationReversed(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
@ -31923,6 +31991,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL},
{ (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL},
{ (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL},
{ (char *)"PrintData_IsOrientationReversed", (PyCFunction)_wrap_PrintData_IsOrientationReversed, METH_O, NULL},
{ (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL},
{ (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL},
{ (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL},
@ -31936,6 +32005,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetOrientationReversed", (PyCFunction) _wrap_PrintData_SetOrientationReversed, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL},

View File

@ -672,6 +672,10 @@ class AuiManager(_core.EvtHandler):
"""CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame"""
return _aui.AuiManager_CreateFloatingFrame(*args, **kwargs)
def CalculateHintRect(*args, **kwargs):
"""CalculateHintRect(self, Window pane_window, Point pt, Point offset) -> Rect"""
return _aui.AuiManager_CalculateHintRect(*args, **kwargs)
def DrawHintRect(*args, **kwargs):
"""DrawHintRect(self, Window pane_window, Point pt, Point offset)"""
return _aui.AuiManager_DrawHintRect(*args, **kwargs)
@ -886,8 +890,8 @@ wxEVT_AUI_PANERESTORE = _aui.wxEVT_AUI_PANERESTORE
wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER
EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
EVT_AUI_PANEMAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANERESTORE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER )
class AuiDockArt(object):
@ -992,79 +996,13 @@ AUI_NB_BOTTOM = _aui.AUI_NB_BOTTOM
AUI_NB_TAB_SPLIT = _aui.AUI_NB_TAB_SPLIT
AUI_NB_TAB_MOVE = _aui.AUI_NB_TAB_MOVE
AUI_NB_TAB_EXTERNAL_MOVE = _aui.AUI_NB_TAB_EXTERNAL_MOVE
AUI_NB_TAB_FIXED_WIDTH = _aui.AUI_NB_TAB_FIXED_WIDTH
AUI_NB_SCROLL_BUTTONS = _aui.AUI_NB_SCROLL_BUTTONS
AUI_NB_WINDOWLIST_BUTTON = _aui.AUI_NB_WINDOWLIST_BUTTON
AUI_NB_CLOSE_BUTTON = _aui.AUI_NB_CLOSE_BUTTON
AUI_NB_CLOSE_ON_ACTIVE_TAB = _aui.AUI_NB_CLOSE_ON_ACTIVE_TAB
AUI_NB_CLOSE_ON_ALL_TABS = _aui.AUI_NB_CLOSE_ON_ALL_TABS
AUI_NB_DEFAULT_STYLE = _aui.AUI_NB_DEFAULT_STYLE
class AuiTabArt(object):
"""Proxy of C++ AuiTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _aui.delete_AuiTabArt
__del__ = lambda self : None;
def SetNormalFont(*args, **kwargs):
"""SetNormalFont(self, Font font)"""
return _aui.AuiTabArt_SetNormalFont(*args, **kwargs)
def SetSelectedFont(*args, **kwargs):
"""SetSelectedFont(self, Font font)"""
return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs)
def SetMeasuringFont(*args, **kwargs):
"""SetMeasuringFont(self, Font font)"""
return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, Window wnd, Rect rect)"""
return _aui.AuiTabArt_DrawBackground(*args, **kwargs)
def DrawTab(*args, **kwargs):
"""
DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, bool active,
int close_button_state, Rect out_tab_rect,
Rect out_button_rect, int x_extent)
"""
return _aui.AuiTabArt_DrawTab(*args, **kwargs)
def DrawButton(*args, **kwargs):
"""
DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state,
int orientation, Bitmap bitmap_override,
Rect out_rect)
"""
return _aui.AuiTabArt_DrawButton(*args, **kwargs)
def GetTabSize(*args, **kwargs):
"""
GetTabSize(self, DC dc, Window wnd, String caption, bool active, int close_button_state,
int x_extent) -> Size
"""
return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
def ShowWindowList(*args, **kwargs):
"""ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
def GetBestTabCtrlSize(*args, **kwargs):
"""GetBestTabCtrlSize(self, Window wnd) -> int"""
return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs)
_aui.AuiTabArt_swigregister(AuiTabArt)
class AuiDefaultTabArt(AuiTabArt):
"""Proxy of C++ AuiDefaultTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiDefaultTabArt"""
_aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiDefaultTabArt
__del__ = lambda self : None;
_aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt)
class AuiNotebookEvent(_core.NotifyEvent):
"""Proxy of C++ AuiNotebookEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
@ -1133,6 +1071,101 @@ class AuiTabContainerButton(object):
rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set)
_aui.AuiTabContainerButton_swigregister(AuiTabContainerButton)
class AuiTabArt(object):
"""Proxy of C++ AuiTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _aui.delete_AuiTabArt
__del__ = lambda self : None;
def Clone(*args, **kwargs):
"""Clone(self) -> AuiTabArt"""
return _aui.AuiTabArt_Clone(*args, **kwargs)
def SetFlags(*args, **kwargs):
"""SetFlags(self, int flags)"""
return _aui.AuiTabArt_SetFlags(*args, **kwargs)
def SetSizingInfo(*args, **kwargs):
"""SetSizingInfo(self, Size tab_ctrl_size, size_t tab_count)"""
return _aui.AuiTabArt_SetSizingInfo(*args, **kwargs)
def SetNormalFont(*args, **kwargs):
"""SetNormalFont(self, Font font)"""
return _aui.AuiTabArt_SetNormalFont(*args, **kwargs)
def SetSelectedFont(*args, **kwargs):
"""SetSelectedFont(self, Font font)"""
return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs)
def SetMeasuringFont(*args, **kwargs):
"""SetMeasuringFont(self, Font font)"""
return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, Window wnd, Rect rect)"""
return _aui.AuiTabArt_DrawBackground(*args, **kwargs)
def DrawTab(*args, **kwargs):
"""
DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, Bitmap bitmap,
bool active, int close_button_state,
Rect out_tab_rect, Rect out_button_rect,
int x_extent)
"""
return _aui.AuiTabArt_DrawTab(*args, **kwargs)
def DrawButton(*args, **kwargs):
"""
DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state,
int orientation, Bitmap bitmap_override,
Rect out_rect)
"""
return _aui.AuiTabArt_DrawButton(*args, **kwargs)
def GetIndentSize(*args, **kwargs):
"""GetIndentSize(self) -> int"""
return _aui.AuiTabArt_GetIndentSize(*args, **kwargs)
def GetTabSize(*args, **kwargs):
"""
GetTabSize(self, DC dc, Window wnd, String caption, Bitmap bitmap, bool active,
int close_button_state, int x_extent) -> Size
"""
return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
def ShowWindowList(*args, **kwargs):
"""ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
def GetBestTabCtrlSize(*args, **kwargs):
"""GetBestTabCtrlSize(self, Window wnd, wxAuiNotebookPageArray pages) -> int"""
return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs)
_aui.AuiTabArt_swigregister(AuiTabArt)
class AuiDefaultTabArt(AuiTabArt):
"""Proxy of C++ AuiDefaultTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiDefaultTabArt"""
_aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiDefaultTabArt
__del__ = lambda self : None;
_aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt)
class AuiSimpleTabArt(AuiTabArt):
"""Proxy of C++ AuiSimpleTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiSimpleTabArt"""
_aui.AuiSimpleTabArt_swiginit(self,_aui.new_AuiSimpleTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiSimpleTabArt
__del__ = lambda self : None;
_aui.AuiSimpleTabArt_swigregister(AuiSimpleTabArt)
class AuiTabContainer(object):
"""Proxy of C++ AuiTabContainer class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
@ -1323,6 +1356,10 @@ class AuiNotebook(_core.Control):
"""SetPageText(self, size_t page, String text) -> bool"""
return _aui.AuiNotebook_SetPageText(*args, **kwargs)
def SetPageBitmap(*args, **kwargs):
"""SetPageBitmap(self, size_t page, Bitmap bitmap) -> bool"""
return _aui.AuiNotebook_SetPageBitmap(*args, **kwargs)
def SetSelection(*args, **kwargs):
"""SetSelection(self, size_t new_page) -> size_t"""
return _aui.AuiNotebook_SetSelection(*args, **kwargs)
@ -1339,6 +1376,10 @@ class AuiNotebook(_core.Control):
"""GetPage(self, size_t page_idx) -> Window"""
return _aui.AuiNotebook_GetPage(*args, **kwargs)
def GetPageIndex(*args, **kwargs):
"""GetPageIndex(self, Window page_wnd) -> int"""
return _aui.AuiNotebook_GetPageIndex(*args, **kwargs)
def SetArtProvider(*args, **kwargs):
"""SetArtProvider(self, AuiTabArt art)"""
return _aui.AuiNotebook_SetArtProvider(*args, **kwargs)

File diff suppressed because it is too large Load Diff

View File

@ -7003,5 +7003,124 @@ class FontPickerEvent(_core.CommandEvent):
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
#---------------------------------------------------------------------------
CP_DEFAULT_STYLE = _controls_.CP_DEFAULT_STYLE
CP_NO_TLW_RESIZE = _controls_.CP_NO_TLW_RESIZE
class CollapsiblePane(_core.Control):
"""
A collapsable pane is a container with an embedded button-like
control which can be used by the user to collapse or expand the pane's
contents.
Once constructed you should use the `GetPane` function to access the
pane and add your controls inside it (i.e. use the window returned
from `GetPane` as the parent for the controls which must go in the
pane, NOT the wx.CollapsiblePane itself!).
Note that because of its nature of control which can dynamically (and
drastically) change its size at run-time under user-input, when
putting a wx.CollapsiblePane inside a `wx.Sizer` you should be careful
to add it with a proportion value of zero; this is because otherwise
all other windows with non-zero proportion values would automatically
get resized each time the user expands or collapses the pane window,
usually resulting a weird, flickering effect.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__init__(self, Window parent, int winid=-1, String label=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator,
String name=CollapsiblePaneNameStr) -> CollapsiblePane
Create and show a wx.CollapsiblePane
"""
_controls_.CollapsiblePane_swiginit(self,_controls_.new_CollapsiblePane(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int winid=-1, String label=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator,
String name=CollapsiblePaneNameStr) -> bool
"""
return _controls_.CollapsiblePane_Create(*args, **kwargs)
def Collapse(*args, **kwargs):
"""
Collapse(self, bool collapse=True)
Collapses or expands the pane window.
"""
return _controls_.CollapsiblePane_Collapse(*args, **kwargs)
def Expand(*args, **kwargs):
"""
Expand(self)
Same as Collapse(False).
"""
return _controls_.CollapsiblePane_Expand(*args, **kwargs)
def IsCollapsed(*args, **kwargs):
"""
IsCollapsed(self) -> bool
Returns ``True`` if the pane window is currently hidden.
"""
return _controls_.CollapsiblePane_IsCollapsed(*args, **kwargs)
def IsExpanded(*args, **kwargs):
"""
IsExpanded(self) -> bool
Returns ``True`` if the pane window is currently shown.
"""
return _controls_.CollapsiblePane_IsExpanded(*args, **kwargs)
def GetPane(*args, **kwargs):
"""
GetPane(self) -> Window
Returns a reference to the pane window. Use the returned `wx.Window`
as the parent of widgets to make them part of the collapsible area.
"""
return _controls_.CollapsiblePane_GetPane(*args, **kwargs)
_controls_.CollapsiblePane_swigregister(CollapsiblePane)
CollapsiblePaneNameStr = cvar.CollapsiblePaneNameStr
def PreCollapsiblePane(*args, **kwargs):
"""
PreCollapsiblePane() -> CollapsiblePane
Precreate a wx.CollapsiblePane for 2-phase creation.
"""
val = _controls_.new_PreCollapsiblePane(*args, **kwargs)
return val
wxEVT_COMMAND_COLLPANE_CHANGED = _controls_.wxEVT_COMMAND_COLLPANE_CHANGED
EVT_COLLAPSIBLEPANE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLLPANE_CHANGED, 1 )
class CollapsiblePaneEvent(_core.CommandEvent):
"""Proxy of C++ CollapsiblePaneEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, Object generator, int id, bool collapsed) -> CollapsiblePaneEvent"""
_controls_.CollapsiblePaneEvent_swiginit(self,_controls_.new_CollapsiblePaneEvent(*args, **kwargs))
def GetCollapsed(*args, **kwargs):
"""GetCollapsed(self) -> bool"""
return _controls_.CollapsiblePaneEvent_GetCollapsed(*args, **kwargs)
def SetCollapsed(*args, **kwargs):
"""SetCollapsed(self, bool c)"""
return _controls_.CollapsiblePaneEvent_SetCollapsed(*args, **kwargs)
_controls_.CollapsiblePaneEvent_swigregister(CollapsiblePaneEvent)

File diff suppressed because one or more lines are too long

View File

@ -1881,10 +1881,14 @@ class Process(_core.EvtHandler):
def __init__(self, *args, **kwargs):
"""__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
_misc_.Process_swiginit(self,_misc_.new_Process(*args, **kwargs))
self._setCallbackInfo(self, Process)
self._setCallbackInfo(self, Process); self.this.own(False)
__swig_destroy__ = _misc_.delete_Process
__del__ = lambda self : None;
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
return _misc_.Process__setCallbackInfo(*args, **kwargs)
def GetPid(*args, **kwargs):
"""
GetPid(self) -> long
@ -1893,10 +1897,6 @@ class Process(_core.EvtHandler):
"""
return _misc_.Process_GetPid(*args, **kwargs)
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
return _misc_.Process__setCallbackInfo(*args, **kwargs)
def OnTerminate(*args, **kwargs):
"""OnTerminate(self, int pid, int status)"""
return _misc_.Process_OnTerminate(*args, **kwargs)
@ -5405,7 +5405,6 @@ class DropTarget(object):
"""GetDefaultAction(self) -> int"""
return _misc_.DropTarget_GetDefaultAction(*args, **kwargs)
Data = property(GetData,doc="See `GetData`")
DataObject = property(GetDataObject,SetDataObject,doc="See `GetDataObject` and `SetDataObject`")
DefaultAction = property(GetDefaultAction,SetDefaultAction,doc="See `GetDefaultAction` and `SetDefaultAction`")
_misc_.DropTarget_swigregister(DropTarget)

View File

@ -14437,34 +14437,6 @@ fail:
}
SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
long result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
}
arg1 = reinterpret_cast< wxPyProcess * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (long)((wxPyProcess const *)arg1)->GetPid();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Process__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
@ -14500,6 +14472,34 @@ fail:
}
SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
long result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
}
arg1 = reinterpret_cast< wxPyProcess * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (long)((wxPyProcess const *)arg1)->GetPid();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Process_OnTerminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
@ -39486,8 +39486,8 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"delete_Process", (PyCFunction)_wrap_delete_Process, METH_O, NULL},
{ (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
{ (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
{ (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Process_Redirect", (PyCFunction)_wrap_Process_Redirect, METH_O, NULL},
{ (char *)"Process_IsRedirected", (PyCFunction)_wrap_Process_IsRedirected, METH_O, NULL},

View File

@ -3830,6 +3830,10 @@ class PrintData(_core.Object):
"""GetOrientation(self) -> int"""
return _windows_.PrintData_GetOrientation(*args, **kwargs)
def IsOrientationReversed(*args, **kwargs):
"""IsOrientationReversed(self) -> bool"""
return _windows_.PrintData_IsOrientationReversed(*args, **kwargs)
def IsOk(*args, **kwargs):
"""IsOk(self) -> bool"""
return _windows_.PrintData_IsOk(*args, **kwargs)
@ -3883,6 +3887,10 @@ class PrintData(_core.Object):
"""SetOrientation(self, int orient)"""
return _windows_.PrintData_SetOrientation(*args, **kwargs)
def SetOrientationReversed(*args, **kwargs):
"""SetOrientationReversed(self, bool reversed)"""
return _windows_.PrintData_SetOrientationReversed(*args, **kwargs)
def SetPrinterName(*args, **kwargs):
"""SetPrinterName(self, String name)"""
return _windows_.PrintData_SetPrinterName(*args, **kwargs)

View File

@ -23566,6 +23566,36 @@ fail:
}
SWIGINTERN PyObject *_wrap_PrintData_IsOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData const *""'");
}
arg1 = reinterpret_cast< wxPrintData * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)((wxPrintData const *)arg1)->IsOrientationReversed();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
@ -23976,6 +24006,44 @@ fail:
}
SWIGINTERN PyObject *_wrap_PrintData_SetOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char * kwnames[] = {
(char *) "self",(char *) "reversed", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientationReversed",kwnames,&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData *""'");
}
arg1 = reinterpret_cast< wxPrintData * >(argp1);
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetOrientationReversed(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
@ -31784,6 +31852,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL},
{ (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL},
{ (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL},
{ (char *)"PrintData_IsOrientationReversed", (PyCFunction)_wrap_PrintData_IsOrientationReversed, METH_O, NULL},
{ (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL},
{ (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL},
{ (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL},
@ -31797,6 +31866,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetOrientationReversed", (PyCFunction) _wrap_PrintData_SetOrientationReversed, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL},

View File

@ -672,6 +672,10 @@ class AuiManager(_core.EvtHandler):
"""CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame"""
return _aui.AuiManager_CreateFloatingFrame(*args, **kwargs)
def CalculateHintRect(*args, **kwargs):
"""CalculateHintRect(self, Window pane_window, Point pt, Point offset) -> Rect"""
return _aui.AuiManager_CalculateHintRect(*args, **kwargs)
def DrawHintRect(*args, **kwargs):
"""DrawHintRect(self, Window pane_window, Point pt, Point offset)"""
return _aui.AuiManager_DrawHintRect(*args, **kwargs)
@ -886,8 +890,8 @@ wxEVT_AUI_PANERESTORE = _aui.wxEVT_AUI_PANERESTORE
wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER
EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
EVT_AUI_PANEMAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANERESTORE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER )
class AuiDockArt(object):
@ -992,79 +996,13 @@ AUI_NB_BOTTOM = _aui.AUI_NB_BOTTOM
AUI_NB_TAB_SPLIT = _aui.AUI_NB_TAB_SPLIT
AUI_NB_TAB_MOVE = _aui.AUI_NB_TAB_MOVE
AUI_NB_TAB_EXTERNAL_MOVE = _aui.AUI_NB_TAB_EXTERNAL_MOVE
AUI_NB_TAB_FIXED_WIDTH = _aui.AUI_NB_TAB_FIXED_WIDTH
AUI_NB_SCROLL_BUTTONS = _aui.AUI_NB_SCROLL_BUTTONS
AUI_NB_WINDOWLIST_BUTTON = _aui.AUI_NB_WINDOWLIST_BUTTON
AUI_NB_CLOSE_BUTTON = _aui.AUI_NB_CLOSE_BUTTON
AUI_NB_CLOSE_ON_ACTIVE_TAB = _aui.AUI_NB_CLOSE_ON_ACTIVE_TAB
AUI_NB_CLOSE_ON_ALL_TABS = _aui.AUI_NB_CLOSE_ON_ALL_TABS
AUI_NB_DEFAULT_STYLE = _aui.AUI_NB_DEFAULT_STYLE
class AuiTabArt(object):
"""Proxy of C++ AuiTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _aui.delete_AuiTabArt
__del__ = lambda self : None;
def SetNormalFont(*args, **kwargs):
"""SetNormalFont(self, Font font)"""
return _aui.AuiTabArt_SetNormalFont(*args, **kwargs)
def SetSelectedFont(*args, **kwargs):
"""SetSelectedFont(self, Font font)"""
return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs)
def SetMeasuringFont(*args, **kwargs):
"""SetMeasuringFont(self, Font font)"""
return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, Window wnd, Rect rect)"""
return _aui.AuiTabArt_DrawBackground(*args, **kwargs)
def DrawTab(*args, **kwargs):
"""
DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, bool active,
int close_button_state, Rect out_tab_rect,
Rect out_button_rect, int x_extent)
"""
return _aui.AuiTabArt_DrawTab(*args, **kwargs)
def DrawButton(*args, **kwargs):
"""
DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state,
int orientation, Bitmap bitmap_override,
Rect out_rect)
"""
return _aui.AuiTabArt_DrawButton(*args, **kwargs)
def GetTabSize(*args, **kwargs):
"""
GetTabSize(self, DC dc, Window wnd, String caption, bool active, int close_button_state,
int x_extent) -> Size
"""
return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
def ShowWindowList(*args, **kwargs):
"""ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
def GetBestTabCtrlSize(*args, **kwargs):
"""GetBestTabCtrlSize(self, Window wnd) -> int"""
return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs)
_aui.AuiTabArt_swigregister(AuiTabArt)
class AuiDefaultTabArt(AuiTabArt):
"""Proxy of C++ AuiDefaultTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiDefaultTabArt"""
_aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiDefaultTabArt
__del__ = lambda self : None;
_aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt)
class AuiNotebookEvent(_core.NotifyEvent):
"""Proxy of C++ AuiNotebookEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
@ -1133,6 +1071,101 @@ class AuiTabContainerButton(object):
rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set)
_aui.AuiTabContainerButton_swigregister(AuiTabContainerButton)
class AuiTabArt(object):
"""Proxy of C++ AuiTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _aui.delete_AuiTabArt
__del__ = lambda self : None;
def Clone(*args, **kwargs):
"""Clone(self) -> AuiTabArt"""
return _aui.AuiTabArt_Clone(*args, **kwargs)
def SetFlags(*args, **kwargs):
"""SetFlags(self, int flags)"""
return _aui.AuiTabArt_SetFlags(*args, **kwargs)
def SetSizingInfo(*args, **kwargs):
"""SetSizingInfo(self, Size tab_ctrl_size, size_t tab_count)"""
return _aui.AuiTabArt_SetSizingInfo(*args, **kwargs)
def SetNormalFont(*args, **kwargs):
"""SetNormalFont(self, Font font)"""
return _aui.AuiTabArt_SetNormalFont(*args, **kwargs)
def SetSelectedFont(*args, **kwargs):
"""SetSelectedFont(self, Font font)"""
return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs)
def SetMeasuringFont(*args, **kwargs):
"""SetMeasuringFont(self, Font font)"""
return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, Window wnd, Rect rect)"""
return _aui.AuiTabArt_DrawBackground(*args, **kwargs)
def DrawTab(*args, **kwargs):
"""
DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, Bitmap bitmap,
bool active, int close_button_state,
Rect out_tab_rect, Rect out_button_rect,
int x_extent)
"""
return _aui.AuiTabArt_DrawTab(*args, **kwargs)
def DrawButton(*args, **kwargs):
"""
DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state,
int orientation, Bitmap bitmap_override,
Rect out_rect)
"""
return _aui.AuiTabArt_DrawButton(*args, **kwargs)
def GetIndentSize(*args, **kwargs):
"""GetIndentSize(self) -> int"""
return _aui.AuiTabArt_GetIndentSize(*args, **kwargs)
def GetTabSize(*args, **kwargs):
"""
GetTabSize(self, DC dc, Window wnd, String caption, Bitmap bitmap, bool active,
int close_button_state, int x_extent) -> Size
"""
return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
def ShowWindowList(*args, **kwargs):
"""ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
def GetBestTabCtrlSize(*args, **kwargs):
"""GetBestTabCtrlSize(self, Window wnd, wxAuiNotebookPageArray pages) -> int"""
return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs)
_aui.AuiTabArt_swigregister(AuiTabArt)
class AuiDefaultTabArt(AuiTabArt):
"""Proxy of C++ AuiDefaultTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiDefaultTabArt"""
_aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiDefaultTabArt
__del__ = lambda self : None;
_aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt)
class AuiSimpleTabArt(AuiTabArt):
"""Proxy of C++ AuiSimpleTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiSimpleTabArt"""
_aui.AuiSimpleTabArt_swiginit(self,_aui.new_AuiSimpleTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiSimpleTabArt
__del__ = lambda self : None;
_aui.AuiSimpleTabArt_swigregister(AuiSimpleTabArt)
class AuiTabContainer(object):
"""Proxy of C++ AuiTabContainer class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
@ -1323,6 +1356,10 @@ class AuiNotebook(_core.Control):
"""SetPageText(self, size_t page, String text) -> bool"""
return _aui.AuiNotebook_SetPageText(*args, **kwargs)
def SetPageBitmap(*args, **kwargs):
"""SetPageBitmap(self, size_t page, Bitmap bitmap) -> bool"""
return _aui.AuiNotebook_SetPageBitmap(*args, **kwargs)
def SetSelection(*args, **kwargs):
"""SetSelection(self, size_t new_page) -> size_t"""
return _aui.AuiNotebook_SetSelection(*args, **kwargs)
@ -1339,6 +1376,10 @@ class AuiNotebook(_core.Control):
"""GetPage(self, size_t page_idx) -> Window"""
return _aui.AuiNotebook_GetPage(*args, **kwargs)
def GetPageIndex(*args, **kwargs):
"""GetPageIndex(self, Window page_wnd) -> int"""
return _aui.AuiNotebook_GetPageIndex(*args, **kwargs)
def SetArtProvider(*args, **kwargs):
"""SetArtProvider(self, AuiTabArt art)"""
return _aui.AuiNotebook_SetArtProvider(*args, **kwargs)

File diff suppressed because it is too large Load Diff

View File

@ -7029,5 +7029,124 @@ class FontPickerEvent(_core.CommandEvent):
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
#---------------------------------------------------------------------------
CP_DEFAULT_STYLE = _controls_.CP_DEFAULT_STYLE
CP_NO_TLW_RESIZE = _controls_.CP_NO_TLW_RESIZE
class CollapsiblePane(_core.Control):
"""
A collapsable pane is a container with an embedded button-like
control which can be used by the user to collapse or expand the pane's
contents.
Once constructed you should use the `GetPane` function to access the
pane and add your controls inside it (i.e. use the window returned
from `GetPane` as the parent for the controls which must go in the
pane, NOT the wx.CollapsiblePane itself!).
Note that because of its nature of control which can dynamically (and
drastically) change its size at run-time under user-input, when
putting a wx.CollapsiblePane inside a `wx.Sizer` you should be careful
to add it with a proportion value of zero; this is because otherwise
all other windows with non-zero proportion values would automatically
get resized each time the user expands or collapses the pane window,
usually resulting a weird, flickering effect.
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__init__(self, Window parent, int winid=-1, String label=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator,
String name=CollapsiblePaneNameStr) -> CollapsiblePane
Create and show a wx.CollapsiblePane
"""
_controls_.CollapsiblePane_swiginit(self,_controls_.new_CollapsiblePane(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int winid=-1, String label=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator,
String name=CollapsiblePaneNameStr) -> bool
"""
return _controls_.CollapsiblePane_Create(*args, **kwargs)
def Collapse(*args, **kwargs):
"""
Collapse(self, bool collapse=True)
Collapses or expands the pane window.
"""
return _controls_.CollapsiblePane_Collapse(*args, **kwargs)
def Expand(*args, **kwargs):
"""
Expand(self)
Same as Collapse(False).
"""
return _controls_.CollapsiblePane_Expand(*args, **kwargs)
def IsCollapsed(*args, **kwargs):
"""
IsCollapsed(self) -> bool
Returns ``True`` if the pane window is currently hidden.
"""
return _controls_.CollapsiblePane_IsCollapsed(*args, **kwargs)
def IsExpanded(*args, **kwargs):
"""
IsExpanded(self) -> bool
Returns ``True`` if the pane window is currently shown.
"""
return _controls_.CollapsiblePane_IsExpanded(*args, **kwargs)
def GetPane(*args, **kwargs):
"""
GetPane(self) -> Window
Returns a reference to the pane window. Use the returned `wx.Window`
as the parent of widgets to make them part of the collapsible area.
"""
return _controls_.CollapsiblePane_GetPane(*args, **kwargs)
_controls_.CollapsiblePane_swigregister(CollapsiblePane)
CollapsiblePaneNameStr = cvar.CollapsiblePaneNameStr
def PreCollapsiblePane(*args, **kwargs):
"""
PreCollapsiblePane() -> CollapsiblePane
Precreate a wx.CollapsiblePane for 2-phase creation.
"""
val = _controls_.new_PreCollapsiblePane(*args, **kwargs)
return val
wxEVT_COMMAND_COLLPANE_CHANGED = _controls_.wxEVT_COMMAND_COLLPANE_CHANGED
EVT_COLLAPSIBLEPANE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLLPANE_CHANGED, 1 )
class CollapsiblePaneEvent(_core.CommandEvent):
"""Proxy of C++ CollapsiblePaneEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, Object generator, int id, bool collapsed) -> CollapsiblePaneEvent"""
_controls_.CollapsiblePaneEvent_swiginit(self,_controls_.new_CollapsiblePaneEvent(*args, **kwargs))
def GetCollapsed(*args, **kwargs):
"""GetCollapsed(self) -> bool"""
return _controls_.CollapsiblePaneEvent_GetCollapsed(*args, **kwargs)
def SetCollapsed(*args, **kwargs):
"""SetCollapsed(self, bool c)"""
return _controls_.CollapsiblePaneEvent_SetCollapsed(*args, **kwargs)
_controls_.CollapsiblePaneEvent_swigregister(CollapsiblePaneEvent)

File diff suppressed because one or more lines are too long

View File

@ -1881,10 +1881,14 @@ class Process(_core.EvtHandler):
def __init__(self, *args, **kwargs):
"""__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
_misc_.Process_swiginit(self,_misc_.new_Process(*args, **kwargs))
self._setCallbackInfo(self, Process)
self._setCallbackInfo(self, Process); self.this.own(False)
__swig_destroy__ = _misc_.delete_Process
__del__ = lambda self : None;
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
return _misc_.Process__setCallbackInfo(*args, **kwargs)
def GetPid(*args, **kwargs):
"""
GetPid(self) -> long
@ -1893,10 +1897,6 @@ class Process(_core.EvtHandler):
"""
return _misc_.Process_GetPid(*args, **kwargs)
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
return _misc_.Process__setCallbackInfo(*args, **kwargs)
def OnTerminate(*args, **kwargs):
"""OnTerminate(self, int pid, int status)"""
return _misc_.Process_OnTerminate(*args, **kwargs)
@ -5405,7 +5405,6 @@ class DropTarget(object):
"""GetDefaultAction(self) -> int"""
return _misc_.DropTarget_GetDefaultAction(*args, **kwargs)
Data = property(GetData,doc="See `GetData`")
DataObject = property(GetDataObject,SetDataObject,doc="See `GetDataObject` and `SetDataObject`")
DefaultAction = property(GetDefaultAction,SetDefaultAction,doc="See `GetDefaultAction` and `SetDefaultAction`")
_misc_.DropTarget_swigregister(DropTarget)

View File

@ -14437,34 +14437,6 @@ fail:
}
SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
long result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
}
arg1 = reinterpret_cast< wxPyProcess * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (long)((wxPyProcess const *)arg1)->GetPid();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Process__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
@ -14500,6 +14472,34 @@ fail:
}
SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
long result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
}
arg1 = reinterpret_cast< wxPyProcess * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (long)((wxPyProcess const *)arg1)->GetPid();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Process_OnTerminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyProcess *arg1 = (wxPyProcess *) 0 ;
@ -39486,8 +39486,8 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"delete_Process", (PyCFunction)_wrap_delete_Process, METH_O, NULL},
{ (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
{ (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
{ (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Process_Redirect", (PyCFunction)_wrap_Process_Redirect, METH_O, NULL},
{ (char *)"Process_IsRedirected", (PyCFunction)_wrap_Process_IsRedirected, METH_O, NULL},

View File

@ -3866,6 +3866,10 @@ class PrintData(_core.Object):
"""GetOrientation(self) -> int"""
return _windows_.PrintData_GetOrientation(*args, **kwargs)
def IsOrientationReversed(*args, **kwargs):
"""IsOrientationReversed(self) -> bool"""
return _windows_.PrintData_IsOrientationReversed(*args, **kwargs)
def IsOk(*args, **kwargs):
"""IsOk(self) -> bool"""
return _windows_.PrintData_IsOk(*args, **kwargs)
@ -3919,6 +3923,10 @@ class PrintData(_core.Object):
"""SetOrientation(self, int orient)"""
return _windows_.PrintData_SetOrientation(*args, **kwargs)
def SetOrientationReversed(*args, **kwargs):
"""SetOrientationReversed(self, bool reversed)"""
return _windows_.PrintData_SetOrientationReversed(*args, **kwargs)
def SetPrinterName(*args, **kwargs):
"""SetPrinterName(self, String name)"""
return _windows_.PrintData_SetPrinterName(*args, **kwargs)

View File

@ -23834,6 +23834,36 @@ fail:
}
SWIGINTERN PyObject *_wrap_PrintData_IsOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData const *""'");
}
arg1 = reinterpret_cast< wxPrintData * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)((wxPrintData const *)arg1)->IsOrientationReversed();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
@ -24244,6 +24274,44 @@ fail:
}
SWIGINTERN PyObject *_wrap_PrintData_SetOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char * kwnames[] = {
(char *) "self",(char *) "reversed", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientationReversed",kwnames,&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData *""'");
}
arg1 = reinterpret_cast< wxPrintData * >(argp1);
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetOrientationReversed(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPrintData *arg1 = (wxPrintData *) 0 ;
@ -32059,6 +32127,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL},
{ (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL},
{ (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL},
{ (char *)"PrintData_IsOrientationReversed", (PyCFunction)_wrap_PrintData_IsOrientationReversed, METH_O, NULL},
{ (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL},
{ (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL},
{ (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL},
@ -32072,6 +32141,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetOrientationReversed", (PyCFunction) _wrap_PrintData_SetOrientationReversed, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL},

View File

@ -672,6 +672,10 @@ class AuiManager(_core.EvtHandler):
"""CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame"""
return _aui.AuiManager_CreateFloatingFrame(*args, **kwargs)
def CalculateHintRect(*args, **kwargs):
"""CalculateHintRect(self, Window pane_window, Point pt, Point offset) -> Rect"""
return _aui.AuiManager_CalculateHintRect(*args, **kwargs)
def DrawHintRect(*args, **kwargs):
"""DrawHintRect(self, Window pane_window, Point pt, Point offset)"""
return _aui.AuiManager_DrawHintRect(*args, **kwargs)
@ -886,8 +890,8 @@ wxEVT_AUI_PANERESTORE = _aui.wxEVT_AUI_PANERESTORE
wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER
EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
EVT_AUI_PANEMAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANERESTORE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER )
class AuiDockArt(object):
@ -992,79 +996,13 @@ AUI_NB_BOTTOM = _aui.AUI_NB_BOTTOM
AUI_NB_TAB_SPLIT = _aui.AUI_NB_TAB_SPLIT
AUI_NB_TAB_MOVE = _aui.AUI_NB_TAB_MOVE
AUI_NB_TAB_EXTERNAL_MOVE = _aui.AUI_NB_TAB_EXTERNAL_MOVE
AUI_NB_TAB_FIXED_WIDTH = _aui.AUI_NB_TAB_FIXED_WIDTH
AUI_NB_SCROLL_BUTTONS = _aui.AUI_NB_SCROLL_BUTTONS
AUI_NB_WINDOWLIST_BUTTON = _aui.AUI_NB_WINDOWLIST_BUTTON
AUI_NB_CLOSE_BUTTON = _aui.AUI_NB_CLOSE_BUTTON
AUI_NB_CLOSE_ON_ACTIVE_TAB = _aui.AUI_NB_CLOSE_ON_ACTIVE_TAB
AUI_NB_CLOSE_ON_ALL_TABS = _aui.AUI_NB_CLOSE_ON_ALL_TABS
AUI_NB_DEFAULT_STYLE = _aui.AUI_NB_DEFAULT_STYLE
class AuiTabArt(object):
"""Proxy of C++ AuiTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _aui.delete_AuiTabArt
__del__ = lambda self : None;
def SetNormalFont(*args, **kwargs):
"""SetNormalFont(self, Font font)"""
return _aui.AuiTabArt_SetNormalFont(*args, **kwargs)
def SetSelectedFont(*args, **kwargs):
"""SetSelectedFont(self, Font font)"""
return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs)
def SetMeasuringFont(*args, **kwargs):
"""SetMeasuringFont(self, Font font)"""
return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, Window wnd, Rect rect)"""
return _aui.AuiTabArt_DrawBackground(*args, **kwargs)
def DrawTab(*args, **kwargs):
"""
DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, bool active,
int close_button_state, Rect out_tab_rect,
Rect out_button_rect, int x_extent)
"""
return _aui.AuiTabArt_DrawTab(*args, **kwargs)
def DrawButton(*args, **kwargs):
"""
DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state,
int orientation, Bitmap bitmap_override,
Rect out_rect)
"""
return _aui.AuiTabArt_DrawButton(*args, **kwargs)
def GetTabSize(*args, **kwargs):
"""
GetTabSize(self, DC dc, Window wnd, String caption, bool active, int close_button_state,
int x_extent) -> Size
"""
return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
def ShowWindowList(*args, **kwargs):
"""ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
def GetBestTabCtrlSize(*args, **kwargs):
"""GetBestTabCtrlSize(self, Window wnd) -> int"""
return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs)
_aui.AuiTabArt_swigregister(AuiTabArt)
class AuiDefaultTabArt(AuiTabArt):
"""Proxy of C++ AuiDefaultTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiDefaultTabArt"""
_aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiDefaultTabArt
__del__ = lambda self : None;
_aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt)
class AuiNotebookEvent(_core.NotifyEvent):
"""Proxy of C++ AuiNotebookEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
@ -1133,6 +1071,101 @@ class AuiTabContainerButton(object):
rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set)
_aui.AuiTabContainerButton_swigregister(AuiTabContainerButton)
class AuiTabArt(object):
"""Proxy of C++ AuiTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _aui.delete_AuiTabArt
__del__ = lambda self : None;
def Clone(*args, **kwargs):
"""Clone(self) -> AuiTabArt"""
return _aui.AuiTabArt_Clone(*args, **kwargs)
def SetFlags(*args, **kwargs):
"""SetFlags(self, int flags)"""
return _aui.AuiTabArt_SetFlags(*args, **kwargs)
def SetSizingInfo(*args, **kwargs):
"""SetSizingInfo(self, Size tab_ctrl_size, size_t tab_count)"""
return _aui.AuiTabArt_SetSizingInfo(*args, **kwargs)
def SetNormalFont(*args, **kwargs):
"""SetNormalFont(self, Font font)"""
return _aui.AuiTabArt_SetNormalFont(*args, **kwargs)
def SetSelectedFont(*args, **kwargs):
"""SetSelectedFont(self, Font font)"""
return _aui.AuiTabArt_SetSelectedFont(*args, **kwargs)
def SetMeasuringFont(*args, **kwargs):
"""SetMeasuringFont(self, Font font)"""
return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, Window wnd, Rect rect)"""
return _aui.AuiTabArt_DrawBackground(*args, **kwargs)
def DrawTab(*args, **kwargs):
"""
DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, Bitmap bitmap,
bool active, int close_button_state,
Rect out_tab_rect, Rect out_button_rect,
int x_extent)
"""
return _aui.AuiTabArt_DrawTab(*args, **kwargs)
def DrawButton(*args, **kwargs):
"""
DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state,
int orientation, Bitmap bitmap_override,
Rect out_rect)
"""
return _aui.AuiTabArt_DrawButton(*args, **kwargs)
def GetIndentSize(*args, **kwargs):
"""GetIndentSize(self) -> int"""
return _aui.AuiTabArt_GetIndentSize(*args, **kwargs)
def GetTabSize(*args, **kwargs):
"""
GetTabSize(self, DC dc, Window wnd, String caption, Bitmap bitmap, bool active,
int close_button_state, int x_extent) -> Size
"""
return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
def ShowWindowList(*args, **kwargs):
"""ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
def GetBestTabCtrlSize(*args, **kwargs):
"""GetBestTabCtrlSize(self, Window wnd, wxAuiNotebookPageArray pages) -> int"""
return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs)
_aui.AuiTabArt_swigregister(AuiTabArt)
class AuiDefaultTabArt(AuiTabArt):
"""Proxy of C++ AuiDefaultTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiDefaultTabArt"""
_aui.AuiDefaultTabArt_swiginit(self,_aui.new_AuiDefaultTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiDefaultTabArt
__del__ = lambda self : None;
_aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt)
class AuiSimpleTabArt(AuiTabArt):
"""Proxy of C++ AuiSimpleTabArt class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> AuiSimpleTabArt"""
_aui.AuiSimpleTabArt_swiginit(self,_aui.new_AuiSimpleTabArt(*args, **kwargs))
__swig_destroy__ = _aui.delete_AuiSimpleTabArt
__del__ = lambda self : None;
_aui.AuiSimpleTabArt_swigregister(AuiSimpleTabArt)
class AuiTabContainer(object):
"""Proxy of C++ AuiTabContainer class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
@ -1323,6 +1356,10 @@ class AuiNotebook(_core.Control):
"""SetPageText(self, size_t page, String text) -> bool"""
return _aui.AuiNotebook_SetPageText(*args, **kwargs)
def SetPageBitmap(*args, **kwargs):
"""SetPageBitmap(self, size_t page, Bitmap bitmap) -> bool"""
return _aui.AuiNotebook_SetPageBitmap(*args, **kwargs)
def SetSelection(*args, **kwargs):
"""SetSelection(self, size_t new_page) -> size_t"""
return _aui.AuiNotebook_SetSelection(*args, **kwargs)
@ -1339,6 +1376,10 @@ class AuiNotebook(_core.Control):
"""GetPage(self, size_t page_idx) -> Window"""
return _aui.AuiNotebook_GetPage(*args, **kwargs)
def GetPageIndex(*args, **kwargs):
"""GetPageIndex(self, Window page_wnd) -> int"""
return _aui.AuiNotebook_GetPageIndex(*args, **kwargs)
def SetArtProvider(*args, **kwargs):
"""SetArtProvider(self, AuiTabArt art)"""
return _aui.AuiNotebook_SetArtProvider(*args, **kwargs)

File diff suppressed because it is too large Load Diff