reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-07 22:45:45 +00:00
parent 95fed4d84b
commit 74a57fcda4
20 changed files with 2833 additions and 400 deletions
+99
View File
@@ -944,6 +944,23 @@ class ListBox(core.ControlWithItems):
"""SetItemFont(int item, Font f)"""
return _controls.ListBox_SetItemFont(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class ListBoxPtr(ListBox):
def __init__(self, this):
@@ -959,6 +976,22 @@ def PreListBox(*args, **kwargs):
val.thisown = 1
return val
def ListBox_GetClassDefaultAttributes(*args, **kwargs):
"""
ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
class CheckListBox(ListBox):
@@ -3779,6 +3812,23 @@ class ListCtrl(core.Control):
"""GetMainWindow() -> Window"""
return _controls.ListCtrl_GetMainWindow(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class ListCtrlPtr(ListCtrl):
def __init__(self, this):
@@ -3793,6 +3843,22 @@ def PreListCtrl(*args, **kwargs):
val.thisown = 1
return val
def ListCtrl_GetClassDefaultAttributes(*args, **kwargs):
"""
ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
class ListView(ListCtrl):
@@ -4428,6 +4494,23 @@ class TreeCtrl(core.Control):
"""GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
return _controls.TreeCtrl_GetBoundingRect(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class TreeCtrlPtr(TreeCtrl):
def __init__(self, this):
@@ -4442,6 +4525,22 @@ def PreTreeCtrl(*args, **kwargs):
val.thisown = 1
return val
def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs):
"""
TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
DIRCTRL_DIR_ONLY = _controls.DIRCTRL_DIR_ONLY
File diff suppressed because one or more lines are too long
+206 -20
View File
@@ -285,8 +285,9 @@ SHRINK = _core.SHRINK
GROW = _core.GROW
EXPAND = _core.EXPAND
SHAPED = _core.SHAPED
ADJUST_MINSIZE = _core.ADJUST_MINSIZE
FIXED_SIZE = _core.FIXED_SIZE
TILE = _core.TILE
ADJUST_MINSIZE = _core.ADJUST_MINSIZE
BORDER_DEFAULT = _core.BORDER_DEFAULT
BORDER_NONE = _core.BORDER_NONE
BORDER_STATIC = _core.BORDER_STATIC
@@ -747,6 +748,24 @@ class Size(object):
"""GetHeight() -> int"""
return _core.Size_GetHeight(*args, **kwargs)
def IsFullySpecified(*args, **kwargs):
"""
IsFullySpecified() -> bool
Returns True if both components of the size are non-default values.
"""
return _core.Size_IsFullySpecified(*args, **kwargs)
def SetDefaults(*args, **kwargs):
"""
SetDefaults(Size size)
Combine this size with the other one replacing the default
components of this object (i.e. equal to -1) with those of the
other.
"""
return _core.Size_SetDefaults(*args, **kwargs)
def Get(*args, **kwargs):
"""
Get() -> (width,height)
@@ -4794,8 +4813,9 @@ class PyApp(EvtHandler):
"""
GetComCtl32Version() -> int
Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it
wasn't found at all. Raises an exception on non-Windows platforms.
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or
0 if it wasn't found at all. Raises an exception on non-Windows
platforms.
"""
return _core.PyApp_GetComCtl32Version(*args, **kwargs)
@@ -4852,8 +4872,9 @@ def PyApp_GetComCtl32Version(*args, **kwargs):
"""
PyApp_GetComCtl32Version() -> int
Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it
wasn't found at all. Raises an exception on non-Windows platforms.
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or
0 if it wasn't found at all. Raises an exception on non-Windows
platforms.
"""
return _core.PyApp_GetComCtl32Version(*args, **kwargs)
@@ -5231,11 +5252,44 @@ def GetAccelFromString(*args, **kwargs):
return _core.GetAccelFromString(*args, **kwargs)
#---------------------------------------------------------------------------
WINDOW_VARIANT_DEFAULT = _core.WINDOW_VARIANT_DEFAULT
class VisualAttributes(object):
"""struct containing all the visual attributes of a control"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__() -> VisualAttributes
struct containing all the visual attributes of a control
"""
newobj = _core.new_VisualAttributes(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def __del__(self, destroy=_core.delete_VisualAttributes):
"""__del__()"""
try:
if self.thisown: destroy(self)
except: pass
font = property(_core.VisualAttributes_font_get, _core.VisualAttributes_font_set)
colFg = property(_core.VisualAttributes_colFg_get, _core.VisualAttributes_colFg_set)
colBg = property(_core.VisualAttributes_colBg_get, _core.VisualAttributes_colBg_set)
class VisualAttributesPtr(VisualAttributes):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = VisualAttributes
_core.VisualAttributes_swigregister(VisualAttributesPtr)
NullAcceleratorTable = cvar.NullAcceleratorTable
PanelNameStr = cvar.PanelNameStr
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
WINDOW_VARIANT_MAX = _core.WINDOW_VARIANT_MAX
class Window(EvtHandler):
"""
wx.Window is the base class for all windows and represents any visible
@@ -5248,8 +5302,8 @@ class Window(EvtHandler):
return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> Window
__init__(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window
Construct and show a generic Window.
"""
@@ -5261,8 +5315,8 @@ class Window(EvtHandler):
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> bool
Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
Create the GUI part of the Window for 2-phase creation mode.
"""
@@ -5362,7 +5416,7 @@ class Window(EvtHandler):
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
such as testing tools or special-needs access programs)which
need to identify windows by name.
"""
return _core.Window_GetLabel(*args, **kwargs)
@@ -5380,7 +5434,7 @@ class Window(EvtHandler):
"""
GetName() -> String
Returns the window's name. This name is not guaranteed to be
Returns the windows 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.
"""
@@ -5391,7 +5445,13 @@ class Window(EvtHandler):
SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
if the platform supports variants, for example, wxMac. Variant values are:
wx.WINDOW_VARIANT_NORMAL Normal size
wx.WINDOW_VARIANT_SMALL Smaller size (about 25 % smaller than normal)
wx.WINDOW_VARIANT_MINI Mini size (about 33 % smaller than normal)
wx.WINDOW_VARIANT_LARGE Large size (about 25 % larger than normal)
"""
return _core.Window_SetWindowVariant(*args, **kwargs)
@@ -5734,10 +5794,11 @@ class Window(EvtHandler):
"""
return _core.Window_FitInside(*args, **kwargs)
def SetSizeHints(*args, **kwargs):
def SetSizeHints(*args):
"""
SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
SetSizeHints(Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
@@ -5745,18 +5806,19 @@ class Window(EvtHandler):
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
"""
return _core.Window_SetSizeHints(*args, **kwargs)
return _core.Window_SetSizeHints(*args)
def SetVirtualSizeHints(*args, **kwargs):
def SetVirtualSizeHints(*args):
"""
SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
SetVirtualSizeHints(Size minSize, Size maxSize=DefaultSize)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
"""
return _core.Window_SetVirtualSizeHints(*args, **kwargs)
return _core.Window_SetVirtualSizeHints(*args)
def GetMinWidth(*args, **kwargs):
"""GetMinWidth() -> int"""
@@ -5778,6 +5840,10 @@ class Window(EvtHandler):
"""GetMaxSize() -> Size"""
return _core.Window_GetMaxSize(*args, **kwargs)
def GetMinSize(*args, **kwargs):
"""GetMinSize() -> Size"""
return _core.Window_GetMinSize(*args, **kwargs)
def SetVirtualSize(*args, **kwargs):
"""
SetVirtualSize(Size size)
@@ -6210,6 +6276,49 @@ class Window(EvtHandler):
"""
return _core.Window_GetValidator(*args, **kwargs)
def Validate(*args, **kwargs):
"""
Validate() -> bool
Validates the current values of the child controls using their
validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY
extra style flag set, the method will also call Validate() of all
child windows. Returns false if any of the validations failed.
"""
return _core.Window_Validate(*args, **kwargs)
def TransferDataToWindow(*args, **kwargs):
"""
TransferDataToWindow() -> bool
Transfers values to child controls from data areas specified by
their validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY
extra style flag set, the method will also call
TransferDataToWindow() of all child windows.
"""
return _core.Window_TransferDataToWindow(*args, **kwargs)
def TransferDataFromWindow(*args, **kwargs):
"""
TransferDataFromWindow() -> bool
Transfers values from child controls to data areas specified by
their validators. Returns false if a transfer failed. If the
window has wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the
method will also call TransferDataFromWindow() of all child
windows.
"""
return _core.Window_TransferDataFromWindow(*args, **kwargs)
def InitDialog(*args, **kwargs):
"""
InitDialog()
Sends an EVT_INIT_DIALOG event, whose handler usually transfers
data to the dialog via validators.
"""
return _core.Window_InitDialog(*args, **kwargs)
def SetAcceleratorTable(*args, **kwargs):
"""
SetAcceleratorTable(AcceleratorTable accel)
@@ -6488,6 +6597,36 @@ class Window(EvtHandler):
"""
return _core.Window_IsExposedRect(*args, **kwargs)
def GetDefaultAttributes(*args, **kwargs):
"""
GetDefaultAttributes() -> VisualAttributes
Get the default attributes for an instance of this class. This
is useful if you want to use the same font or colour in your own
control as in a standard control -- which is a much better idea
than hard coding specific colours or fonts which might look
completely out of place on the users system, especially if it
uses themes.
"""
return _core.Window_GetDefaultAttributes(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Window_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
def SetBackgroundColour(*args, **kwargs):
"""
SetBackgroundColour(Colour colour) -> bool
@@ -7078,8 +7217,6 @@ class WindowPtr(Window):
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = Window
_core.Window_swigregister(WindowPtr)
NullAcceleratorTable = cvar.NullAcceleratorTable
PanelNameStr = cvar.PanelNameStr
def PreWindow(*args, **kwargs):
"""
@@ -7134,6 +7271,22 @@ def Window_GetCapture(*args, **kwargs):
"""
return _core.Window_GetCapture(*args, **kwargs)
def Window_GetClassDefaultAttributes(*args, **kwargs):
"""
Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Window_GetClassDefaultAttributes(*args, **kwargs)
def DLG_PNT(win, point_or_x, y=None):
"""
Convenience function for converting a Point or (x,y) in
@@ -7835,7 +7988,7 @@ class Control(Window):
Command(CommandEvent event)
Simulates the effect of the user issuing a command to the
item. See wxCommandEvent.
item. See wx.CommandEvent.
"""
return _core.Control_Command(*args, **kwargs)
@@ -7855,6 +8008,23 @@ class Control(Window):
"""
return _core.Control_SetLabel(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Control_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class ControlPtr(Control):
def __init__(self, this):
@@ -7874,6 +8044,22 @@ def PreControl(*args, **kwargs):
val.thisown = 1
return val
def Control_GetClassDefaultAttributes(*args, **kwargs):
"""
Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Control_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
class ItemContainer(object):
File diff suppressed because it is too large Load Diff
+1
View File
@@ -8782,6 +8782,7 @@ static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObj
#else
PyObject* str = PyObject_Str(item);
#endif
if (PyErr_Occurred()) SWIG_fail;
arg3->Add(Py2wxString(str));
Py_DECREF(item);
Py_DECREF(str);
+1
View File
@@ -11932,6 +11932,7 @@ static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args,
#else
PyObject* str = PyObject_Str(item);
#endif
if (PyErr_Occurred()) SWIG_fail;
arg1->Add(Py2wxString(str));
Py_DECREF(item);
Py_DECREF(str);
+18 -5
View File
@@ -33,7 +33,12 @@ class Panel(core.Window):
return _windows.Panel_Create(*args, **kwargs)
def InitDialog(*args, **kwargs):
"""InitDialog()"""
"""
InitDialog()
Sends an EVT_INIT_DIALOG event, whose handler usually transfers
data to the dialog via validators.
"""
return _windows.Panel_InitDialog(*args, **kwargs)
@@ -678,8 +683,8 @@ class SplitterWindow(core.Window):
return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
__init__(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
Constructor. Creates and shows a SplitterWindow.
"""
@@ -692,8 +697,8 @@ class SplitterWindow(core.Window):
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=SP_3D, String name=SplitterNameStr) -> bool
Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
Create the GUI part of the SplitterWindow for the 2-phase create.
"""
@@ -1838,6 +1843,14 @@ class TaskBarIcon(core.EvtHandler):
if self.thisown: destroy(self)
except: pass
def Destroy(*args, **kwargs):
"""
Destroy()
Deletes the C++ object this Python object is a proxy for.
"""
return _windows.TaskBarIcon_Destroy(*args, **kwargs)
def IsOk(*args, **kwargs):
"""IsOk() -> bool"""
return _windows.TaskBarIcon_IsOk(*args, **kwargs)
+43 -8
View File
@@ -825,6 +825,11 @@ enum {
};
#endif
void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){
self->RemoveIcon();
}
static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr);
@@ -5362,7 +5367,7 @@ static PyObject *_wrap_SplitterNameStr_get() {
static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
int arg2 ;
int arg2 = (int) -1 ;
wxPoint const &arg3_defvalue = wxDefaultPosition ;
wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
wxSize const &arg4_defvalue = wxDefaultSize ;
@@ -5384,11 +5389,13 @@ static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObje
(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
arg2 = (int) SWIG_AsInt(obj1);
if (PyErr_Occurred()) SWIG_fail;
if (obj1) {
arg2 = (int) SWIG_AsInt(obj1);
if (PyErr_Occurred()) SWIG_fail;
}
if (obj2) {
{
arg3 = &temp3;
@@ -5460,7 +5467,7 @@ static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyO
PyObject *resultobj;
wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ;
wxWindow *arg2 = (wxWindow *) 0 ;
int arg3 ;
int arg3 = (int) -1 ;
wxPoint const &arg4_defvalue = wxDefaultPosition ;
wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
wxSize const &arg5_defvalue = wxDefaultSize ;
@@ -5483,13 +5490,15 @@ static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyO
(char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
arg3 = (int) SWIG_AsInt(obj2);
if (PyErr_Occurred()) SWIG_fail;
if (obj2) {
arg3 = (int) SWIG_AsInt(obj2);
if (PyErr_Occurred()) SWIG_fail;
}
if (obj3) {
{
arg4 = &temp4;
@@ -10586,6 +10595,31 @@ static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObje
}
static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "self", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxTaskBarIcon_Destroy(arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
Py_INCREF(Py_None); resultobj = Py_None;
return resultobj;
fail:
return NULL;
}
static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ;
@@ -24508,6 +24542,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS },
{ (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS },
{ (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS },
+99
View File
@@ -944,6 +944,23 @@ class ListBox(core.ControlWithItems):
"""SetItemFont(int item, Font f)"""
return _controls.ListBox_SetItemFont(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class ListBoxPtr(ListBox):
def __init__(self, this):
@@ -959,6 +976,22 @@ def PreListBox(*args, **kwargs):
val.thisown = 1
return val
def ListBox_GetClassDefaultAttributes(*args, **kwargs):
"""
ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
class CheckListBox(ListBox):
@@ -3795,6 +3828,23 @@ class ListCtrl(core.Control):
"""GetMainWindow() -> Window"""
return _controls.ListCtrl_GetMainWindow(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class ListCtrlPtr(ListCtrl):
def __init__(self, this):
@@ -3809,6 +3859,22 @@ def PreListCtrl(*args, **kwargs):
val.thisown = 1
return val
def ListCtrl_GetClassDefaultAttributes(*args, **kwargs):
"""
ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
class ListView(ListCtrl):
@@ -4452,6 +4518,23 @@ class TreeCtrl(core.Control):
"""GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
return _controls.TreeCtrl_GetBoundingRect(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class TreeCtrlPtr(TreeCtrl):
def __init__(self, this):
@@ -4466,6 +4549,22 @@ def PreTreeCtrl(*args, **kwargs):
val.thisown = 1
return val
def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs):
"""
TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
DIRCTRL_DIR_ONLY = _controls.DIRCTRL_DIR_ONLY
File diff suppressed because one or more lines are too long
+206 -20
View File
@@ -285,8 +285,9 @@ SHRINK = _core.SHRINK
GROW = _core.GROW
EXPAND = _core.EXPAND
SHAPED = _core.SHAPED
ADJUST_MINSIZE = _core.ADJUST_MINSIZE
FIXED_SIZE = _core.FIXED_SIZE
TILE = _core.TILE
ADJUST_MINSIZE = _core.ADJUST_MINSIZE
BORDER_DEFAULT = _core.BORDER_DEFAULT
BORDER_NONE = _core.BORDER_NONE
BORDER_STATIC = _core.BORDER_STATIC
@@ -747,6 +748,24 @@ class Size(object):
"""GetHeight() -> int"""
return _core.Size_GetHeight(*args, **kwargs)
def IsFullySpecified(*args, **kwargs):
"""
IsFullySpecified() -> bool
Returns True if both components of the size are non-default values.
"""
return _core.Size_IsFullySpecified(*args, **kwargs)
def SetDefaults(*args, **kwargs):
"""
SetDefaults(Size size)
Combine this size with the other one replacing the default
components of this object (i.e. equal to -1) with those of the
other.
"""
return _core.Size_SetDefaults(*args, **kwargs)
def Get(*args, **kwargs):
"""
Get() -> (width,height)
@@ -4794,8 +4813,9 @@ class PyApp(EvtHandler):
"""
GetComCtl32Version() -> int
Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it
wasn't found at all. Raises an exception on non-Windows platforms.
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or
0 if it wasn't found at all. Raises an exception on non-Windows
platforms.
"""
return _core.PyApp_GetComCtl32Version(*args, **kwargs)
@@ -4852,8 +4872,9 @@ def PyApp_GetComCtl32Version(*args, **kwargs):
"""
PyApp_GetComCtl32Version() -> int
Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it
wasn't found at all. Raises an exception on non-Windows platforms.
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or
0 if it wasn't found at all. Raises an exception on non-Windows
platforms.
"""
return _core.PyApp_GetComCtl32Version(*args, **kwargs)
@@ -5231,11 +5252,44 @@ def GetAccelFromString(*args, **kwargs):
return _core.GetAccelFromString(*args, **kwargs)
#---------------------------------------------------------------------------
WINDOW_VARIANT_DEFAULT = _core.WINDOW_VARIANT_DEFAULT
class VisualAttributes(object):
"""struct containing all the visual attributes of a control"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__() -> VisualAttributes
struct containing all the visual attributes of a control
"""
newobj = _core.new_VisualAttributes(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def __del__(self, destroy=_core.delete_VisualAttributes):
"""__del__()"""
try:
if self.thisown: destroy(self)
except: pass
font = property(_core.VisualAttributes_font_get, _core.VisualAttributes_font_set)
colFg = property(_core.VisualAttributes_colFg_get, _core.VisualAttributes_colFg_set)
colBg = property(_core.VisualAttributes_colBg_get, _core.VisualAttributes_colBg_set)
class VisualAttributesPtr(VisualAttributes):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = VisualAttributes
_core.VisualAttributes_swigregister(VisualAttributesPtr)
NullAcceleratorTable = cvar.NullAcceleratorTable
PanelNameStr = cvar.PanelNameStr
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
WINDOW_VARIANT_MAX = _core.WINDOW_VARIANT_MAX
class Window(EvtHandler):
"""
wx.Window is the base class for all windows and represents any visible
@@ -5248,8 +5302,8 @@ class Window(EvtHandler):
return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> Window
__init__(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window
Construct and show a generic Window.
"""
@@ -5261,8 +5315,8 @@ class Window(EvtHandler):
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> bool
Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
Create the GUI part of the Window for 2-phase creation mode.
"""
@@ -5362,7 +5416,7 @@ class Window(EvtHandler):
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
such as testing tools or special-needs access programs)which
need to identify windows by name.
"""
return _core.Window_GetLabel(*args, **kwargs)
@@ -5380,7 +5434,7 @@ class Window(EvtHandler):
"""
GetName() -> String
Returns the window's name. This name is not guaranteed to be
Returns the windows 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.
"""
@@ -5391,7 +5445,13 @@ class Window(EvtHandler):
SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
if the platform supports variants, for example, wxMac. Variant values are:
wx.WINDOW_VARIANT_NORMAL Normal size
wx.WINDOW_VARIANT_SMALL Smaller size (about 25 % smaller than normal)
wx.WINDOW_VARIANT_MINI Mini size (about 33 % smaller than normal)
wx.WINDOW_VARIANT_LARGE Large size (about 25 % larger than normal)
"""
return _core.Window_SetWindowVariant(*args, **kwargs)
@@ -5734,10 +5794,11 @@ class Window(EvtHandler):
"""
return _core.Window_FitInside(*args, **kwargs)
def SetSizeHints(*args, **kwargs):
def SetSizeHints(*args):
"""
SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
SetSizeHints(Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
@@ -5745,18 +5806,19 @@ class Window(EvtHandler):
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
"""
return _core.Window_SetSizeHints(*args, **kwargs)
return _core.Window_SetSizeHints(*args)
def SetVirtualSizeHints(*args, **kwargs):
def SetVirtualSizeHints(*args):
"""
SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
SetVirtualSizeHints(Size minSize, Size maxSize=DefaultSize)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
"""
return _core.Window_SetVirtualSizeHints(*args, **kwargs)
return _core.Window_SetVirtualSizeHints(*args)
def GetMinWidth(*args, **kwargs):
"""GetMinWidth() -> int"""
@@ -5778,6 +5840,10 @@ class Window(EvtHandler):
"""GetMaxSize() -> Size"""
return _core.Window_GetMaxSize(*args, **kwargs)
def GetMinSize(*args, **kwargs):
"""GetMinSize() -> Size"""
return _core.Window_GetMinSize(*args, **kwargs)
def SetVirtualSize(*args, **kwargs):
"""
SetVirtualSize(Size size)
@@ -6210,6 +6276,49 @@ class Window(EvtHandler):
"""
return _core.Window_GetValidator(*args, **kwargs)
def Validate(*args, **kwargs):
"""
Validate() -> bool
Validates the current values of the child controls using their
validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY
extra style flag set, the method will also call Validate() of all
child windows. Returns false if any of the validations failed.
"""
return _core.Window_Validate(*args, **kwargs)
def TransferDataToWindow(*args, **kwargs):
"""
TransferDataToWindow() -> bool
Transfers values to child controls from data areas specified by
their validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY
extra style flag set, the method will also call
TransferDataToWindow() of all child windows.
"""
return _core.Window_TransferDataToWindow(*args, **kwargs)
def TransferDataFromWindow(*args, **kwargs):
"""
TransferDataFromWindow() -> bool
Transfers values from child controls to data areas specified by
their validators. Returns false if a transfer failed. If the
window has wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the
method will also call TransferDataFromWindow() of all child
windows.
"""
return _core.Window_TransferDataFromWindow(*args, **kwargs)
def InitDialog(*args, **kwargs):
"""
InitDialog()
Sends an EVT_INIT_DIALOG event, whose handler usually transfers
data to the dialog via validators.
"""
return _core.Window_InitDialog(*args, **kwargs)
def SetAcceleratorTable(*args, **kwargs):
"""
SetAcceleratorTable(AcceleratorTable accel)
@@ -6488,6 +6597,36 @@ class Window(EvtHandler):
"""
return _core.Window_IsExposedRect(*args, **kwargs)
def GetDefaultAttributes(*args, **kwargs):
"""
GetDefaultAttributes() -> VisualAttributes
Get the default attributes for an instance of this class. This
is useful if you want to use the same font or colour in your own
control as in a standard control -- which is a much better idea
than hard coding specific colours or fonts which might look
completely out of place on the users system, especially if it
uses themes.
"""
return _core.Window_GetDefaultAttributes(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Window_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
def SetBackgroundColour(*args, **kwargs):
"""
SetBackgroundColour(Colour colour) -> bool
@@ -7091,8 +7230,6 @@ class WindowPtr(Window):
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = Window
_core.Window_swigregister(WindowPtr)
NullAcceleratorTable = cvar.NullAcceleratorTable
PanelNameStr = cvar.PanelNameStr
def PreWindow(*args, **kwargs):
"""
@@ -7147,6 +7284,22 @@ def Window_GetCapture(*args, **kwargs):
"""
return _core.Window_GetCapture(*args, **kwargs)
def Window_GetClassDefaultAttributes(*args, **kwargs):
"""
Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Window_GetClassDefaultAttributes(*args, **kwargs)
def DLG_PNT(win, point_or_x, y=None):
"""
Convenience function for converting a Point or (x,y) in
@@ -7904,7 +8057,7 @@ class Control(Window):
Command(CommandEvent event)
Simulates the effect of the user issuing a command to the
item. See wxCommandEvent.
item. See wx.CommandEvent.
"""
return _core.Control_Command(*args, **kwargs)
@@ -7924,6 +8077,23 @@ class Control(Window):
"""
return _core.Control_SetLabel(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Control_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
class ControlPtr(Control):
def __init__(self, this):
@@ -7943,6 +8113,22 @@ def PreControl(*args, **kwargs):
val.thisown = 1
return val
def Control_GetClassDefaultAttributes(*args, **kwargs):
"""
Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if
you want to use the same font or colour in your own control as
in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out
of place on the users system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of the
returned font. See SetWindowVariant for more about this.
"""
return _core.Control_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
class ItemContainer(object):
File diff suppressed because it is too large Load Diff
+1
View File
@@ -8782,6 +8782,7 @@ static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObj
#else
PyObject* str = PyObject_Str(item);
#endif
if (PyErr_Occurred()) SWIG_fail;
arg3->Add(Py2wxString(str));
Py_DECREF(item);
Py_DECREF(str);
+1
View File
@@ -11917,6 +11917,7 @@ static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args,
#else
PyObject* str = PyObject_Str(item);
#endif
if (PyErr_Occurred()) SWIG_fail;
arg1->Add(Py2wxString(str));
Py_DECREF(item);
Py_DECREF(str);
+18 -5
View File
@@ -33,7 +33,12 @@ class Panel(core.Window):
return _windows.Panel_Create(*args, **kwargs)
def InitDialog(*args, **kwargs):
"""InitDialog()"""
"""
InitDialog()
Sends an EVT_INIT_DIALOG event, whose handler usually transfers
data to the dialog via validators.
"""
return _windows.Panel_InitDialog(*args, **kwargs)
@@ -683,8 +688,8 @@ class SplitterWindow(core.Window):
return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
__init__(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
Constructor. Creates and shows a SplitterWindow.
"""
@@ -697,8 +702,8 @@ class SplitterWindow(core.Window):
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=SP_3D, String name=SplitterNameStr) -> bool
Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
Create the GUI part of the SplitterWindow for the 2-phase create.
"""
@@ -1843,6 +1848,14 @@ class TaskBarIcon(core.EvtHandler):
if self.thisown: destroy(self)
except: pass
def Destroy(*args, **kwargs):
"""
Destroy()
Deletes the C++ object this Python object is a proxy for.
"""
return _windows.TaskBarIcon_Destroy(*args, **kwargs)
def IsOk(*args, **kwargs):
"""IsOk() -> bool"""
return _windows.TaskBarIcon_IsOk(*args, **kwargs)
+43 -8
View File
@@ -825,6 +825,11 @@ enum {
};
#endif
void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){
self->RemoveIcon();
}
static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr);
@@ -5424,7 +5429,7 @@ static PyObject *_wrap_SplitterNameStr_get() {
static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
int arg2 ;
int arg2 = (int) -1 ;
wxPoint const &arg3_defvalue = wxDefaultPosition ;
wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
wxSize const &arg4_defvalue = wxDefaultSize ;
@@ -5446,11 +5451,13 @@ static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObje
(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
arg2 = (int) SWIG_AsInt(obj1);
if (PyErr_Occurred()) SWIG_fail;
if (obj1) {
arg2 = (int) SWIG_AsInt(obj1);
if (PyErr_Occurred()) SWIG_fail;
}
if (obj2) {
{
arg3 = &temp3;
@@ -5522,7 +5529,7 @@ static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyO
PyObject *resultobj;
wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ;
wxWindow *arg2 = (wxWindow *) 0 ;
int arg3 ;
int arg3 = (int) -1 ;
wxPoint const &arg4_defvalue = wxDefaultPosition ;
wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
wxSize const &arg5_defvalue = wxDefaultSize ;
@@ -5545,13 +5552,15 @@ static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyO
(char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
arg3 = (int) SWIG_AsInt(obj2);
if (PyErr_Occurred()) SWIG_fail;
if (obj2) {
arg3 = (int) SWIG_AsInt(obj2);
if (PyErr_Occurred()) SWIG_fail;
}
if (obj3) {
{
arg4 = &temp4;
@@ -10648,6 +10657,31 @@ static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObje
}
static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "self", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxTaskBarIcon_Destroy(arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
Py_INCREF(Py_None); resultobj = Py_None;
return resultobj;
fail:
return NULL;
}
static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ;
@@ -24658,6 +24692,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS },
{ (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS },
{ (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS },
{ (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS },