mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-20 04:48:48 +08:00
reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -602,6 +602,11 @@
|
||||
%rename(AcceleratorTable) wxAcceleratorTable;
|
||||
%rename(NullAcceleratorTable) wxNullAcceleratorTable;
|
||||
%rename(GetAccelFromString) wxGetAccelFromString;
|
||||
%rename(WINDOW_VARIANT_DEFAULT) wxWINDOW_VARIANT_DEFAULT;
|
||||
%rename(WINDOW_VARIANT_NORMAL) wxWINDOW_VARIANT_NORMAL;
|
||||
%rename(WINDOW_VARIANT_SMALL) wxWINDOW_VARIANT_SMALL;
|
||||
%rename(WINDOW_VARIANT_MINI) wxWINDOW_VARIANT_MINI;
|
||||
%rename(WINDOW_VARIANT_LARGE) wxWINDOW_VARIANT_LARGE;
|
||||
%rename(Window) wxWindow;
|
||||
%rename(FindWindowById) wxFindWindowById;
|
||||
%rename(FindWindowByName) wxFindWindowByName;
|
||||
|
||||
@@ -3613,6 +3613,10 @@ class ListCtrl(core.Control):
|
||||
"""AssignImageList(ImageList imageList, int which)"""
|
||||
return _controls.ListCtrl_AssignImageList(*args, **kwargs)
|
||||
|
||||
def InReportView(*args, **kwargs):
|
||||
"""InReportView() -> bool"""
|
||||
return _controls.ListCtrl_InReportView(*args, **kwargs)
|
||||
|
||||
def IsVirtual(*args, **kwargs):
|
||||
"""IsVirtual() -> bool"""
|
||||
return _controls.ListCtrl_IsVirtual(*args, **kwargs)
|
||||
|
||||
@@ -964,6 +964,8 @@ public:
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
|
||||
DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@@ -993,6 +995,7 @@ IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
|
||||
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
|
||||
|
||||
|
||||
|
||||
@@ -7147,7 +7150,10 @@ static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
|
||||
{
|
||||
wxFont* resultptr = new wxFont(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -15147,7 +15153,10 @@ static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
|
||||
{
|
||||
wxBitmap* resultptr = new wxBitmap(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -15176,7 +15185,10 @@ static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObjec
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
|
||||
{
|
||||
wxBitmap* resultptr = new wxBitmap(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -21325,6 +21337,32 @@ static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args,
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
|
||||
bool result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
|
||||
@@ -30258,6 +30296,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
|
||||
|
||||
+49
-22
@@ -5229,6 +5229,11 @@ def GetAccelFromString(*args, **kwargs):
|
||||
return _core.GetAccelFromString(*args, **kwargs)
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
WINDOW_VARIANT_DEFAULT = _core.WINDOW_VARIANT_DEFAULT
|
||||
WINDOW_VARIANT_NORMAL = _core.WINDOW_VARIANT_NORMAL
|
||||
WINDOW_VARIANT_SMALL = _core.WINDOW_VARIANT_SMALL
|
||||
WINDOW_VARIANT_MINI = _core.WINDOW_VARIANT_MINI
|
||||
WINDOW_VARIANT_LARGE = _core.WINDOW_VARIANT_LARGE
|
||||
class Window(EvtHandler):
|
||||
"""
|
||||
wx.Window is the base class for all windows and represents any visible
|
||||
@@ -5350,12 +5355,13 @@ class Window(EvtHandler):
|
||||
"""
|
||||
GetLabel() -> String
|
||||
|
||||
Generic way of getting a label from any window, for identification
|
||||
purposes. The interpretation of this function differs from class to
|
||||
class. For frames and dialogs, the value returned is the title. For
|
||||
buttons or static text controls, it is the button text. This function
|
||||
can be useful for meta-programs (such as testing tools or
|
||||
special-needs access programs) which need to identify windows by name.
|
||||
Generic way of getting a label from any window, for
|
||||
identification purposes. The interpretation of this function
|
||||
differs from class to class. For frames and dialogs, the value
|
||||
returned is the title. For buttons or static text controls, it is
|
||||
the button text. This function can be useful for meta-programs
|
||||
(such as testing tools or special-needs access programs) which
|
||||
need to identify windows by name.
|
||||
"""
|
||||
return _core.Window_GetLabel(*args, **kwargs)
|
||||
|
||||
@@ -5363,8 +5369,8 @@ class Window(EvtHandler):
|
||||
"""
|
||||
SetName(String name)
|
||||
|
||||
Sets the window's name. The window name is used for ressource setting
|
||||
in X, it is not the same as the window title/label
|
||||
Sets the window's name. The window name is used for ressource
|
||||
setting in X, it is not the same as the window title/label
|
||||
"""
|
||||
return _core.Window_SetName(*args, **kwargs)
|
||||
|
||||
@@ -5372,12 +5378,25 @@ class Window(EvtHandler):
|
||||
"""
|
||||
GetName() -> String
|
||||
|
||||
Returns the window's name. This name is not guaranteed to be unique;
|
||||
it is up to the programmer to supply an appropriate name in the window
|
||||
constructor or via wx.Window.SetName.
|
||||
Returns the window's name. This name is not guaranteed to be
|
||||
unique; it is up to the programmer to supply an appropriate name
|
||||
in the window constructor or via wx.Window.SetName.
|
||||
"""
|
||||
return _core.Window_GetName(*args, **kwargs)
|
||||
|
||||
def SetWindowVariant(*args, **kwargs):
|
||||
"""
|
||||
SetWindowVariant(int variant)
|
||||
|
||||
Sets the variant of the window/font size to use for this window,
|
||||
if the platform supports variants, (for example, wxMac.)
|
||||
"""
|
||||
return _core.Window_SetWindowVariant(*args, **kwargs)
|
||||
|
||||
def GetWindowVariant(*args, **kwargs):
|
||||
"""GetWindowVariant() -> int"""
|
||||
return _core.Window_GetWindowVariant(*args, **kwargs)
|
||||
|
||||
def SetId(*args, **kwargs):
|
||||
"""
|
||||
SetId(int winid)
|
||||
@@ -6384,9 +6403,10 @@ class Window(EvtHandler):
|
||||
"""
|
||||
Freeze()
|
||||
|
||||
Freezes the window or, in other words, prevents any updates from
|
||||
taking place on screen, the window is not redrawn at all. Thaw must be
|
||||
called to reenable window redrawing.
|
||||
Freezes the window or, in other words, prevents any updates from taking place
|
||||
on screen, the window is not redrawn at all. Thaw must be called to reenable
|
||||
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
|
||||
being delayed until all the nesting has been undone.
|
||||
|
||||
This method is useful for visual appearance optimization (for example,
|
||||
it is a good idea to use it before inserting large amount of text into
|
||||
@@ -6400,7 +6420,9 @@ class Window(EvtHandler):
|
||||
"""
|
||||
Thaw()
|
||||
|
||||
Reenables window updating after a previous call to Freeze.
|
||||
Reenables window updating after a previous call to Freeze. Calls to
|
||||
Freeze/Thaw may be nested, so Thaw must be called the same number of times
|
||||
that Freeze was before the window will be updated.
|
||||
"""
|
||||
return _core.Window_Thaw(*args, **kwargs)
|
||||
|
||||
@@ -6453,16 +6475,16 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core.Window_IsExposedPoint(*args, **kwargs)
|
||||
|
||||
def isExposedRect(*args, **kwargs):
|
||||
def IsExposedRect(*args, **kwargs):
|
||||
"""
|
||||
isExposedRect(Rect rect) -> bool
|
||||
IsExposedRect(Rect rect) -> bool
|
||||
|
||||
Returns true if the given point or rectangle area has been exposed
|
||||
since the last repaint. Call this in an paint event handler to
|
||||
optimize redrawing by only redrawing those areas, which have been
|
||||
exposed.
|
||||
"""
|
||||
return _core.Window_isExposedRect(*args, **kwargs)
|
||||
return _core.Window_IsExposedRect(*args, **kwargs)
|
||||
|
||||
def SetBackgroundColour(*args, **kwargs):
|
||||
"""
|
||||
@@ -6545,7 +6567,7 @@ class Window(EvtHandler):
|
||||
"""
|
||||
GetFont() -> Font
|
||||
|
||||
Returns a reference to the font for this window.
|
||||
Returns the default font used for this window.
|
||||
"""
|
||||
return _core.Window_GetFont(*args, **kwargs)
|
||||
|
||||
@@ -7169,7 +7191,7 @@ def FindWindowByLabel(*args, **kwargs):
|
||||
return _core.FindWindowByLabel(*args, **kwargs)
|
||||
|
||||
def Window_FromHWND(*args, **kwargs):
|
||||
"""Window_FromHWND(unsigned long hWnd) -> Window"""
|
||||
"""Window_FromHWND(Window parent, unsigned long _hWnd) -> Window"""
|
||||
return _core.Window_FromHWND(*args, **kwargs)
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -9311,7 +9333,7 @@ def CallAfter(callable, *args, **kw):
|
||||
|
||||
class FutureCall:
|
||||
"""
|
||||
A convenience class for wxTimer, that calls the given callable
|
||||
A convenience class for wx.Timer, that calls the given callable
|
||||
object once after the given amount of milliseconds, passing any
|
||||
positional or keyword args. The return value of the callable is
|
||||
availbale after it has been run with the GetResult method.
|
||||
@@ -9328,6 +9350,7 @@ class FutureCall:
|
||||
self.callable = callable
|
||||
self.SetArgs(*args, **kwargs)
|
||||
self.runCount = 0
|
||||
self.running = False
|
||||
self.hasRun = False
|
||||
self.result = None
|
||||
self.timer = None
|
||||
@@ -9349,6 +9372,7 @@ class FutureCall:
|
||||
self.Stop()
|
||||
self.timer = wx.PyTimer(self.Notify)
|
||||
self.timer.Start(self.millis, wx.TIMER_ONE_SHOT)
|
||||
self.running = True
|
||||
Restart = Start
|
||||
|
||||
|
||||
@@ -9395,9 +9419,12 @@ class FutureCall:
|
||||
"""
|
||||
if self.callable and getattr(self.callable, 'im_self', True):
|
||||
self.runCount += 1
|
||||
self.running = False
|
||||
self.result = self.callable(*self.args, **self.kwargs)
|
||||
self.hasRun = True
|
||||
wx.CallAfter(self.Stop)
|
||||
if not self.running:
|
||||
# if it wasn't restarted, then cleanup
|
||||
wx.CallAfter(self.Stop)
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
+105
-15
@@ -1374,11 +1374,23 @@ wxWindow* wxFindWindowByLabel( const wxString& label,
|
||||
}
|
||||
|
||||
|
||||
wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
|
||||
#ifdef __WXMSW__
|
||||
#include <wx/msw/private.h> // to get wxGetWindowId
|
||||
#endif
|
||||
|
||||
|
||||
wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
|
||||
#ifdef __WXMSW__
|
||||
WXHWND hWnd = (WXHWND)_hWnd;
|
||||
long id = wxGetWindowId(hWnd);
|
||||
wxWindow* win = new wxWindow;
|
||||
win->SetHWND((WXHWND)hWnd);
|
||||
win->SubclassWin((WXHWND)hWnd);
|
||||
parent->AddChild(win);
|
||||
win->SetEventHandler(win);
|
||||
win->SetHWND(hWnd);
|
||||
win->SetId(id);
|
||||
win->SubclassWin(hWnd);
|
||||
win->AdoptAttributesFromHWND();
|
||||
win->SetupColours();
|
||||
return win;
|
||||
#else
|
||||
wxPyRaiseNotImplemented();
|
||||
@@ -14990,7 +15002,10 @@ static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args,
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 0);
|
||||
{
|
||||
wxCursor* resultptr = new wxCursor(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -21336,6 +21351,61 @@ static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
int arg2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "variant", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
arg2 = (wxWindowVariant) SWIG_AsInt(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetWindowVariant((wxWindowVariant )arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
int result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (int)((wxWindow const *)arg1)->GetWindowVariant();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_FromInt((int)result);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@@ -24721,7 +24791,7 @@ static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyO
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxRect *arg2 = 0 ;
|
||||
@@ -24733,7 +24803,7 @@ static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyOb
|
||||
(char *) "self",(char *) "rect", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
@@ -24937,7 +25007,10 @@ static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 0);
|
||||
{
|
||||
wxCursor* resultptr = new wxCursor(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -25001,7 +25074,10 @@ static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
|
||||
{
|
||||
wxFont* resultptr = new wxFont(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -26816,19 +26892,23 @@ static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObjec
|
||||
|
||||
static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
unsigned long arg1 ;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
unsigned long arg2 ;
|
||||
wxWindow *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "hWnd", NULL
|
||||
(char *) "parent",(char *) "_hWnd", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail;
|
||||
arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxWindow *)wxWindow_FromHWND(arg1);
|
||||
result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@@ -31187,7 +31267,10 @@ static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObje
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
|
||||
{
|
||||
wxBitmap* resultptr = new wxBitmap(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -39386,6 +39469,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -39496,7 +39581,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
@@ -41416,6 +41501,11 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT));
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
|
||||
PyDict_SetItemString(d,"WINDOW_VARIANT_DEFAULT", SWIG_FromInt((int)wxWINDOW_VARIANT_DEFAULT));
|
||||
PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL));
|
||||
PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL));
|
||||
PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI));
|
||||
PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE));
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
|
||||
PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE));
|
||||
|
||||
@@ -571,6 +571,14 @@ class Bitmap(GDIObject):
|
||||
return _gdi.Bitmap_SetDepth(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __eq__(*args, **kwargs):
|
||||
"""__eq__(Bitmap other) -> bool"""
|
||||
return _gdi.Bitmap___eq__(*args, **kwargs)
|
||||
|
||||
def __ne__(*args, **kwargs):
|
||||
"""__ne__(Bitmap other) -> bool"""
|
||||
return _gdi.Bitmap___ne__(*args, **kwargs)
|
||||
|
||||
|
||||
class BitmapPtr(Bitmap):
|
||||
def __init__(self, this):
|
||||
|
||||
@@ -596,6 +596,8 @@ void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
|
||||
wxMask *mask = new wxMask(*self, colour);
|
||||
self->SetMask(mask);
|
||||
}
|
||||
bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
|
||||
bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
|
||||
wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
|
||||
if ( !colour.Ok() )
|
||||
return new wxMask(bitmap, *wxBLACK);
|
||||
@@ -3384,6 +3386,66 @@ static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
wxBitmap *arg2 = (wxBitmap *) 0 ;
|
||||
bool result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "other", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = (wxBitmap *) 0 ;
|
||||
wxBitmap *arg2 = (wxBitmap *) 0 ;
|
||||
bool result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "other", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
|
||||
PyObject *obj;
|
||||
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
||||
@@ -4368,7 +4430,10 @@ static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObje
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 0);
|
||||
{
|
||||
wxIcon* resultptr = new wxIcon(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -13491,7 +13556,10 @@ static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
|
||||
{
|
||||
wxBrush* resultptr = new wxBrush(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -13520,7 +13588,10 @@ static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwa
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
|
||||
{
|
||||
wxBrush* resultptr = new wxBrush(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -13549,7 +13620,10 @@ static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwar
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
|
||||
{
|
||||
wxFont* resultptr = new wxFont(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -13578,7 +13652,10 @@ static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwarg
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
|
||||
{
|
||||
wxPen* resultptr = new wxPen(*result);
|
||||
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -17916,6 +17993,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
|
||||
{ (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
|
||||
|
||||
@@ -1226,7 +1226,7 @@ class Grid(windows.ScrolledWindow):
|
||||
wxGridSelectColumns = _grid.Grid_wxGridSelectColumns
|
||||
SelectCells = wxGridSelectCells
|
||||
SelectRows = wxGridSelectRows
|
||||
SelectColumns = wxGridSelectColumns,
|
||||
SelectColumns = wxGridSelectColumns
|
||||
|
||||
def CreateGrid(*args, **kwargs):
|
||||
"""CreateGrid(int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
|
||||
@@ -1319,16 +1319,6 @@ class Grid(windows.ScrolledWindow):
|
||||
"""ForceRefresh()"""
|
||||
return _grid.Grid_ForceRefresh(*args, **kwargs)
|
||||
|
||||
def Refresh(*args, **kwargs):
|
||||
"""
|
||||
Refresh(bool eraseb=True, Rect rect=None)
|
||||
|
||||
Mark the specified rectangle (or the whole window) as "dirty" so it
|
||||
will be repainted. Causes an EVT_PAINT event to be generated and sent
|
||||
to the window.
|
||||
"""
|
||||
return _grid.Grid_Refresh(*args, **kwargs)
|
||||
|
||||
def IsEditable(*args, **kwargs):
|
||||
"""IsEditable() -> bool"""
|
||||
return _grid.Grid_IsEditable(*args, **kwargs)
|
||||
|
||||
@@ -8820,43 +8820,6 @@ static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObjec
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGrid *arg1 = (wxGrid *) 0 ;
|
||||
bool arg2 = (bool) True ;
|
||||
wxRect *arg3 = (wxRect *) NULL ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "eraseb",(char *) "rect", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if (obj1) {
|
||||
arg2 = (bool) SWIG_AsBool(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
if (obj2) {
|
||||
if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->Refresh(arg2,(wxRect const *)arg3);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGrid *arg1 = (wxGrid *) 0 ;
|
||||
@@ -15539,7 +15502,6 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
|
||||
|
||||
@@ -1000,11 +1000,7 @@ class HtmlWindow(windows.ScrolledWindow):
|
||||
return _html.HtmlWindow_SetFonts(*args, **kwargs)
|
||||
|
||||
def SetTitle(*args, **kwargs):
|
||||
"""
|
||||
SetTitle(String title)
|
||||
|
||||
Sets the window's title. Applicable only to frames and dialogs.
|
||||
"""
|
||||
"""SetTitle(String title)"""
|
||||
return _html.HtmlWindow_SetTitle(*args, **kwargs)
|
||||
|
||||
def SetBorders(*args, **kwargs):
|
||||
|
||||
+264
-15
@@ -948,7 +948,7 @@ class Timer(core.EvtHandler):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, Timer)
|
||||
self._setCallbackInfo(self, Timer, 0)
|
||||
|
||||
def __del__(self, destroy=_misc.delete_Timer):
|
||||
"""__del__()"""
|
||||
@@ -957,7 +957,7 @@ class Timer(core.EvtHandler):
|
||||
except: pass
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(PyObject self, PyObject _class)"""
|
||||
"""_setCallbackInfo(PyObject self, PyObject _class, int incref=1)"""
|
||||
return _misc.Timer__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
def SetOwner(*args, **kwargs):
|
||||
@@ -1008,7 +1008,7 @@ class PyTimer(Timer):
|
||||
|
||||
|
||||
EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 )
|
||||
|
||||
|
||||
|
||||
class TimerEvent(core.Event):
|
||||
def __repr__(self):
|
||||
@@ -2484,18 +2484,19 @@ class ConfigBase(object):
|
||||
class) and you will always use one of its derivations: wx.Config
|
||||
or wx.FileConfig.
|
||||
|
||||
wx.ConfigBase organizes the items in a tree-like structure
|
||||
(modeled after the Unix/Dos filesystem). There are groups
|
||||
(directories) and keys (files). There is always one current
|
||||
group given by the current path. As in the file system case, to
|
||||
specify a key in the config class you must use a path to it.
|
||||
Config classes also support the notion of the current group,
|
||||
which makes it possible to use relative paths.
|
||||
wx.ConfigBase organizes the items in a tree-like structure,
|
||||
modeled after the Unix/Dos filesystem. There are groups that act
|
||||
like directories and entries, key/value pairs that act like
|
||||
files. There is always one current group given by the current
|
||||
path. As in the file system case, to specify a key in the config
|
||||
class you must use a path to it. Config classes also support the
|
||||
notion of the current group, which makes it possible to use
|
||||
relative paths.
|
||||
|
||||
Keys are pairs "key_name = value" where value may be of string, integer
|
||||
floating point or boolean, you can not store binary data without first
|
||||
encoding it as a string. For performance reasons items should be kept small,
|
||||
no more than a couple kilobytes.
|
||||
Keys are pairs "key_name = value" where value may be of string,
|
||||
integer floating point or boolean, you can not store binary data
|
||||
without first encoding it as a string. For performance reasons
|
||||
items should be kept small, no more than a couple kilobytes.
|
||||
|
||||
"""
|
||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
||||
@@ -2926,7 +2927,7 @@ class FileConfig(ConfigBase):
|
||||
"""
|
||||
__init__(String appName=EmptyString, String vendorName=EmptyString,
|
||||
String localFilename=EmptyString, String globalFilename=EmptyString,
|
||||
long style=0) -> FileConfig
|
||||
long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
|
||||
"""
|
||||
newobj = _misc.new_FileConfig(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@@ -5014,4 +5015,252 @@ class ClipboardLockerPtr(ClipboardLocker):
|
||||
_misc.ClipboardLocker_swigregister(ClipboardLockerPtr)
|
||||
TheClipboard = cvar.TheClipboard
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class VideoMode(object):
|
||||
"""A simple struct containing video mode parameters for a display"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
|
||||
|
||||
A simple struct containing video mode parameters for a display
|
||||
"""
|
||||
newobj = _misc.new_VideoMode(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc.delete_VideoMode):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Matches(*args, **kwargs):
|
||||
"""
|
||||
Matches(VideoMode other) -> bool
|
||||
|
||||
Returns true if this mode matches the other one in the sense that
|
||||
all non zero fields of the other mode have the same value in this
|
||||
one (except for refresh which is allowed to have a greater value)
|
||||
"""
|
||||
return _misc.VideoMode_Matches(*args, **kwargs)
|
||||
|
||||
def GetWidth(*args, **kwargs):
|
||||
"""
|
||||
GetWidth() -> int
|
||||
|
||||
Returns the screen width in pixels (e.g. 640*480), 0 means
|
||||
unspecified
|
||||
"""
|
||||
return _misc.VideoMode_GetWidth(*args, **kwargs)
|
||||
|
||||
def GetHeight(*args, **kwargs):
|
||||
"""
|
||||
GetHeight() -> int
|
||||
|
||||
Returns the screen width in pixels (e.g. 640*480), 0 means
|
||||
unspecified
|
||||
"""
|
||||
return _misc.VideoMode_GetHeight(*args, **kwargs)
|
||||
|
||||
def GetDepth(*args, **kwargs):
|
||||
"""
|
||||
GetDepth() -> int
|
||||
|
||||
Returns the screen's bits per pixel (e.g. 32), 1 is monochrome
|
||||
and 0 means unspecified/known
|
||||
"""
|
||||
return _misc.VideoMode_GetDepth(*args, **kwargs)
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
IsOk() -> bool
|
||||
|
||||
returns true if the object has been initialized
|
||||
"""
|
||||
return _misc.VideoMode_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def __eq__(*args, **kwargs):
|
||||
"""__eq__(VideoMode other) -> bool"""
|
||||
return _misc.VideoMode___eq__(*args, **kwargs)
|
||||
|
||||
def __ne__(*args, **kwargs):
|
||||
"""__ne__(VideoMode other) -> bool"""
|
||||
return _misc.VideoMode___ne__(*args, **kwargs)
|
||||
|
||||
w = property(_misc.VideoMode_w_get, _misc.VideoMode_w_set)
|
||||
h = property(_misc.VideoMode_h_get, _misc.VideoMode_h_set)
|
||||
bpp = property(_misc.VideoMode_bpp_get, _misc.VideoMode_bpp_set)
|
||||
refresh = property(_misc.VideoMode_refresh_get, _misc.VideoMode_refresh_set)
|
||||
|
||||
class VideoModePtr(VideoMode):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = VideoMode
|
||||
_misc.VideoMode_swigregister(VideoModePtr)
|
||||
|
||||
class Display(object):
|
||||
"""Represents a display/monitor attached to the system"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(size_t index=0) -> Display
|
||||
|
||||
Set up a Display instance with the specified display. The
|
||||
displays are numbered from 0 to GetCount() - 1, 0 is always the
|
||||
primary display and the only one which is always supported
|
||||
"""
|
||||
newobj = _misc.new_Display(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc.delete_Display):
|
||||
"""__del__()"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetCount(*args, **kwargs):
|
||||
"""
|
||||
GetCount() -> size_t
|
||||
|
||||
Return the number of available displays.
|
||||
"""
|
||||
return _misc.Display_GetCount(*args, **kwargs)
|
||||
|
||||
GetCount = staticmethod(GetCount)
|
||||
def GetFromPoint(*args, **kwargs):
|
||||
"""
|
||||
GetFromPoint(Point pt) -> int
|
||||
|
||||
Find the display where the given point lies, return wx.NOT_FOUND
|
||||
if it doesn't belong to any display
|
||||
"""
|
||||
return _misc.Display_GetFromPoint(*args, **kwargs)
|
||||
|
||||
GetFromPoint = staticmethod(GetFromPoint)
|
||||
def GetFromWindow(*args, **kwargs):
|
||||
"""
|
||||
GetFromWindow(Window window) -> int
|
||||
|
||||
Find the display where the given window lies, return wx.NOT_FOUND
|
||||
if it is not shown at all.
|
||||
"""
|
||||
return _misc.Display_GetFromWindow(*args, **kwargs)
|
||||
|
||||
GetFromWindow = staticmethod(GetFromWindow)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
IsOk() -> bool
|
||||
|
||||
Return true if the object was initialized successfully
|
||||
"""
|
||||
return _misc.Display_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def GetGeometry(*args, **kwargs):
|
||||
"""
|
||||
GetGeometry() -> Rect
|
||||
|
||||
Returns the bounding rectangle of the display whose index was
|
||||
passed to the constructor.
|
||||
"""
|
||||
return _misc.Display_GetGeometry(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
"""
|
||||
GetName() -> String
|
||||
|
||||
Returns the display's name. A name is not available on all platforms.
|
||||
"""
|
||||
return _misc.Display_GetName(*args, **kwargs)
|
||||
|
||||
def IsPrimary(*args, **kwargs):
|
||||
"""
|
||||
IsPrimary() -> bool
|
||||
|
||||
Returns true if the display is the primary display. The primary
|
||||
display is the one whose index is 0.
|
||||
"""
|
||||
return _misc.Display_IsPrimary(*args, **kwargs)
|
||||
|
||||
def GetModes(*args, **kwargs):
|
||||
"""
|
||||
GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
|
||||
|
||||
Enumerate all video modes supported by this display matching the
|
||||
given one (in the sense of VideoMode.Match()).
|
||||
|
||||
As any mode matches the default value of the argument and there
|
||||
is always at least one video mode supported by display, the
|
||||
returned array is only empty for the default value of the
|
||||
argument if this function is not supported at all on this
|
||||
platform.
|
||||
"""
|
||||
return _misc.Display_GetModes(*args, **kwargs)
|
||||
|
||||
def GetCurrentMode(*args, **kwargs):
|
||||
"""
|
||||
GetCurrentMode() -> VideoMode
|
||||
|
||||
Get the current video mode.
|
||||
"""
|
||||
return _misc.Display_GetCurrentMode(*args, **kwargs)
|
||||
|
||||
def ChangeMode(*args, **kwargs):
|
||||
"""
|
||||
ChangeMode(VideoMode mode=DefaultVideoMode) -> bool
|
||||
|
||||
Change current mode, return true if succeeded, false otherwise
|
||||
"""
|
||||
return _misc.Display_ChangeMode(*args, **kwargs)
|
||||
|
||||
def ResetMode(*args, **kwargs):
|
||||
"""
|
||||
ResetMode()
|
||||
|
||||
Restore the default video mode (just a more readable synonym)
|
||||
"""
|
||||
return _misc.Display_ResetMode(*args, **kwargs)
|
||||
|
||||
|
||||
class DisplayPtr(Display):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = Display
|
||||
_misc.Display_swigregister(DisplayPtr)
|
||||
DefaultVideoMode = cvar.DefaultVideoMode
|
||||
|
||||
def Display_GetCount(*args, **kwargs):
|
||||
"""
|
||||
Display_GetCount() -> size_t
|
||||
|
||||
Return the number of available displays.
|
||||
"""
|
||||
return _misc.Display_GetCount(*args, **kwargs)
|
||||
|
||||
def Display_GetFromPoint(*args, **kwargs):
|
||||
"""
|
||||
Display_GetFromPoint(Point pt) -> int
|
||||
|
||||
Find the display where the given point lies, return wx.NOT_FOUND
|
||||
if it doesn't belong to any display
|
||||
"""
|
||||
return _misc.Display_GetFromPoint(*args, **kwargs)
|
||||
|
||||
def Display_GetFromWindow(*args, **kwargs):
|
||||
"""
|
||||
Display_GetFromWindow(Window window) -> int
|
||||
|
||||
Find the display where the given window lies, return wx.NOT_FOUND
|
||||
if it is not shown at all.
|
||||
"""
|
||||
return _misc.Display_GetFromWindow(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
+1013
-82
File diff suppressed because it is too large
Load Diff
+26
-12
@@ -320,8 +320,8 @@ class Frame(TopLevelWindow):
|
||||
Command = ProcessCommand
|
||||
def CreateStatusBar(*args, **kwargs):
|
||||
"""
|
||||
CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0,
|
||||
String name=StatusLineNameStr) -> StatusBar
|
||||
CreateStatusBar(int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
|
||||
int winid=0, String name=StatusLineNameStr) -> StatusBar
|
||||
"""
|
||||
return _windows.Frame_CreateStatusBar(*args, **kwargs)
|
||||
|
||||
@@ -579,7 +579,10 @@ class StatusBar(core.Window):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
|
||||
"""
|
||||
__init__(Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
|
||||
String name=StatusLineNameStr) -> StatusBar
|
||||
"""
|
||||
newobj = _windows.new_StatusBar(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
@@ -656,6 +659,7 @@ SP_PERMIT_UNSPLIT = _windows.SP_PERMIT_UNSPLIT
|
||||
SP_LIVE_UPDATE = _windows.SP_LIVE_UPDATE
|
||||
SP_3DSASH = _windows.SP_3DSASH
|
||||
SP_3DBORDER = _windows.SP_3DBORDER
|
||||
SP_NO_XP_THEME = _windows.SP_NO_XP_THEME
|
||||
SP_BORDER = _windows.SP_BORDER
|
||||
SP_3D = _windows.SP_3D
|
||||
SPLIT_HORIZONTAL = _windows.SPLIT_HORIZONTAL
|
||||
@@ -1621,6 +1625,7 @@ class TaskBarIcon(core.EvtHandler):
|
||||
"""IsOk() -> bool"""
|
||||
return _windows.TaskBarIcon_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def IsIconInstalled(*args, **kwargs):
|
||||
"""IsIconInstalled() -> bool"""
|
||||
return _windows.TaskBarIcon_IsIconInstalled(*args, **kwargs)
|
||||
@@ -3408,9 +3413,12 @@ _windows.PageSetupDialog_swigregister(PageSetupDialogPtr)
|
||||
class PrintDialogData(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__() -> PrintDialogData"""
|
||||
newobj = _windows.new_PrintDialogData(*args, **kwargs)
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__() -> PrintDialogData
|
||||
__init__(PrintData printData) -> PrintDialogData
|
||||
"""
|
||||
newobj = _windows.new_PrintDialogData(*args)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
@@ -3886,9 +3894,12 @@ _windows.PreviewControlBar_swigregister(PreviewControlBarPtr)
|
||||
class PrintPreview(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PrintPreview"""
|
||||
newobj = _windows.new_PrintPreview(*args, **kwargs)
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
|
||||
__init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
|
||||
"""
|
||||
newobj = _windows.new_PrintPreview(*args)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
@@ -3992,9 +4003,12 @@ _windows.PrintPreview_swigregister(PrintPreviewPtr)
|
||||
class PyPrintPreview(PrintPreview):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PyPrintPreview"""
|
||||
newobj = _windows.new_PyPrintPreview(*args, **kwargs)
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
|
||||
__init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
|
||||
"""
|
||||
newobj = _windows.new_PyPrintPreview(*args)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user