reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-04-18 23:00:39 +00:00
parent 639158366c
commit 50efceee4e
13 changed files with 2418 additions and 2270 deletions

View File

@ -724,7 +724,6 @@ class Object(object):
Object_swigregister = _core_.Object_swigregister
Object_swigregister(Object)
_wxPySetDictionary = _core_._wxPySetDictionary
_wxPyFixStockObjects = _core_._wxPyFixStockObjects
cvar = _core_.cvar
EmptyString = cvar.EmptyString
@ -9833,6 +9832,10 @@ class Menu(EvtHandler):
"""AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
return _core_.Menu_AppendMenu(*args, **kwargs)
def AppendSubMenu(*args, **kwargs):
"""AppendSubMenu(self, Menu submenu, String text, String help=EmptyString) -> MenuItem"""
return _core_.Menu_AppendSubMenu(*args, **kwargs)
def AppendItem(*args, **kwargs):
"""AppendItem(self, MenuItem item) -> MenuItem"""
return _core_.Menu_AppendItem(*args, **kwargs)
@ -12922,11 +12925,6 @@ from _windows import *
from _controls import *
from _misc import *
# Fixup the stock objects since they can't be used yet. (They will be
# restored in wx.PyApp.OnInit.)
_core_._wxPyFixStockObjects()
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------

View File

@ -38413,6 +38413,82 @@ fail:
}
SWIGINTERN PyObject *_wrap_Menu_AppendSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) 0 ;
wxMenu *arg2 = (wxMenu *) 0 ;
wxString *arg3 = 0 ;
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString *arg4 = (wxString *) &arg4_defvalue ;
wxMenuItem *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool temp3 = false ;
bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
char * kwnames[] = {
(char *) "self",(char *) "submenu",(char *) "text",(char *) "help", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendSubMenu",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSubMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
}
arg1 = reinterpret_cast< wxMenu * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
}
arg2 = reinterpret_cast< wxMenu * >(argp2);
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
temp4 = true;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (wxMenuItem *)(arg1)->AppendSubMenu(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
resultobj = wxPyMake_wxObject(result, (bool)0);
}
{
if (temp3)
delete arg3;
}
{
if (temp4)
delete arg4;
}
return resultobj;
fail:
{
if (temp3)
delete arg3;
}
{
if (temp4)
delete arg4;
}
return NULL;
}
SWIGINTERN PyObject *_wrap_Menu_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) 0 ;
@ -52394,7 +52470,6 @@ SWIGINTERN PyObject *LayoutConstraints_swiginit(PyObject *SWIGUNUSEDPARM(self),
static PyMethodDef SwigMethods[] = {
{ (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL},
{ (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL},
{ (char *)"Object_GetClassName", (PyCFunction)_wrap_Object_GetClassName, METH_O, NULL},
{ (char *)"Object_Destroy", (PyCFunction)_wrap_Object_Destroy, METH_O, NULL},
{ (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL},
@ -53467,6 +53542,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendSubMenu", (PyCFunction) _wrap_Menu_AppendSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},

View File

@ -64,14 +64,6 @@ class GDIObject(_core.Object):
_gdi_.GDIObject_swiginit(self,_gdi_.new_GDIObject(*args, **kwargs))
__swig_destroy__ = _gdi_.delete_GDIObject
__del__ = lambda self : None;
def GetVisible(*args, **kwargs):
"""GetVisible(self) -> bool"""
return _gdi_.GDIObject_GetVisible(*args, **kwargs)
def SetVisible(*args, **kwargs):
"""SetVisible(self, bool visible)"""
return _gdi_.GDIObject_SetVisible(*args, **kwargs)
def IsNull(*args, **kwargs):
"""IsNull(self) -> bool"""
return _gdi_.GDIObject_IsNull(*args, **kwargs)
@ -4342,64 +4334,192 @@ ImageList_swigregister(ImageList)
#---------------------------------------------------------------------------
class PenList(_core.Object):
"""Proxy of C++ PenList class"""
class StockGDI(object):
"""Proxy of C++ StockGDI class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def AddPen(*args, **kwargs):
"""AddPen(self, Pen pen)"""
return _gdi_.PenList_AddPen(*args, **kwargs)
BRUSH_BLACK = _gdi_.StockGDI_BRUSH_BLACK
BRUSH_BLUE = _gdi_.StockGDI_BRUSH_BLUE
BRUSH_CYAN = _gdi_.StockGDI_BRUSH_CYAN
BRUSH_GREEN = _gdi_.StockGDI_BRUSH_GREEN
BRUSH_GREY = _gdi_.StockGDI_BRUSH_GREY
BRUSH_LIGHTGREY = _gdi_.StockGDI_BRUSH_LIGHTGREY
BRUSH_MEDIUMGREY = _gdi_.StockGDI_BRUSH_MEDIUMGREY
BRUSH_RED = _gdi_.StockGDI_BRUSH_RED
BRUSH_TRANSPARENT = _gdi_.StockGDI_BRUSH_TRANSPARENT
BRUSH_WHITE = _gdi_.StockGDI_BRUSH_WHITE
COLOUR_BLACK = _gdi_.StockGDI_COLOUR_BLACK
COLOUR_BLUE = _gdi_.StockGDI_COLOUR_BLUE
COLOUR_CYAN = _gdi_.StockGDI_COLOUR_CYAN
COLOUR_GREEN = _gdi_.StockGDI_COLOUR_GREEN
COLOUR_LIGHTGREY = _gdi_.StockGDI_COLOUR_LIGHTGREY
COLOUR_RED = _gdi_.StockGDI_COLOUR_RED
COLOUR_WHITE = _gdi_.StockGDI_COLOUR_WHITE
CURSOR_CROSS = _gdi_.StockGDI_CURSOR_CROSS
CURSOR_HOURGLASS = _gdi_.StockGDI_CURSOR_HOURGLASS
CURSOR_STANDARD = _gdi_.StockGDI_CURSOR_STANDARD
FONT_ITALIC = _gdi_.StockGDI_FONT_ITALIC
FONT_NORMAL = _gdi_.StockGDI_FONT_NORMAL
FONT_SMALL = _gdi_.StockGDI_FONT_SMALL
FONT_SWISS = _gdi_.StockGDI_FONT_SWISS
PEN_BLACK = _gdi_.StockGDI_PEN_BLACK
PEN_BLACKDASHED = _gdi_.StockGDI_PEN_BLACKDASHED
PEN_CYAN = _gdi_.StockGDI_PEN_CYAN
PEN_GREEN = _gdi_.StockGDI_PEN_GREEN
PEN_GREY = _gdi_.StockGDI_PEN_GREY
PEN_LIGHTGREY = _gdi_.StockGDI_PEN_LIGHTGREY
PEN_MEDIUMGREY = _gdi_.StockGDI_PEN_MEDIUMGREY
PEN_RED = _gdi_.StockGDI_PEN_RED
PEN_TRANSPARENT = _gdi_.StockGDI_PEN_TRANSPARENT
PEN_WHITE = _gdi_.StockGDI_PEN_WHITE
ITEMCOUNT = _gdi_.StockGDI_ITEMCOUNT
def __init__(self, *args, **kwargs):
"""__init__(self) -> StockGDI"""
_gdi_.StockGDI_swiginit(self,_gdi_.new_StockGDI(*args, **kwargs))
__swig_destroy__ = _gdi_.delete_StockGDI
__del__ = lambda self : None;
def DeleteAll(*args, **kwargs):
"""DeleteAll()"""
return _gdi_.StockGDI_DeleteAll(*args, **kwargs)
def FindOrCreatePen(*args, **kwargs):
"""FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
return _gdi_.PenList_FindOrCreatePen(*args, **kwargs)
DeleteAll = staticmethod(DeleteAll)
def instance(*args, **kwargs):
"""instance() -> StockGDI"""
return _gdi_.StockGDI_instance(*args, **kwargs)
def RemovePen(*args, **kwargs):
"""RemovePen(self, Pen pen)"""
return _gdi_.PenList_RemovePen(*args, **kwargs)
instance = staticmethod(instance)
def GetBrush(*args, **kwargs):
"""GetBrush(int item) -> Brush"""
return _gdi_.StockGDI_GetBrush(*args, **kwargs)
def GetCount(*args, **kwargs):
"""GetCount(self) -> int"""
return _gdi_.PenList_GetCount(*args, **kwargs)
GetBrush = staticmethod(GetBrush)
def GetColour(*args, **kwargs):
"""GetColour(int item) -> Colour"""
return _gdi_.StockGDI_GetColour(*args, **kwargs)
PenList_swigregister = _gdi_.PenList_swigregister
PenList_swigregister(PenList)
GetColour = staticmethod(GetColour)
def GetCursor(*args, **kwargs):
"""GetCursor(int item) -> Cursor"""
return _gdi_.StockGDI_GetCursor(*args, **kwargs)
GetCursor = staticmethod(GetCursor)
def GetPen(*args, **kwargs):
"""GetPen(int item) -> Pen"""
return _gdi_.StockGDI_GetPen(*args, **kwargs)
GetPen = staticmethod(GetPen)
def GetFont(*args, **kwargs):
"""GetFont(self, int item) -> Font"""
return _gdi_.StockGDI_GetFont(*args, **kwargs)
StockGDI_swigregister = _gdi_.StockGDI_swigregister
StockGDI_swigregister(StockGDI)
def StockGDI_DeleteAll(*args):
"""StockGDI_DeleteAll()"""
return _gdi_.StockGDI_DeleteAll(*args)
def StockGDI_instance(*args):
"""StockGDI_instance() -> StockGDI"""
return _gdi_.StockGDI_instance(*args)
def StockGDI_GetBrush(*args, **kwargs):
"""StockGDI_GetBrush(int item) -> Brush"""
return _gdi_.StockGDI_GetBrush(*args, **kwargs)
def StockGDI_GetColour(*args, **kwargs):
"""StockGDI_GetColour(int item) -> Colour"""
return _gdi_.StockGDI_GetColour(*args, **kwargs)
def StockGDI_GetCursor(*args, **kwargs):
"""StockGDI_GetCursor(int item) -> Cursor"""
return _gdi_.StockGDI_GetCursor(*args, **kwargs)
def StockGDI_GetPen(*args, **kwargs):
"""StockGDI_GetPen(int item) -> Pen"""
return _gdi_.StockGDI_GetPen(*args, **kwargs)
# This function makes a class used to do delayed initialization of some
# stock wx objects. When they are used the first time then an init function
# is called to make the real instance, which is then used to replace the
# original instance and class seen by the programmer.
def _wxPyMakeDelayedInitWrapper(initFunc):
class _wxPyStockObjectWrapper(object):
def __init__(self, *args):
self._args = args
def __getattr__(self, name):
obj = initFunc(*self._args)
self.__class__ = obj.__class__
self.__dict__ = obj.__dict__
return getattr(self, name)
def __str__(self):
return self.__getattr__("__str__")()
def __repr__(self):
return self.__getattr__("__repr__")()
return _wxPyStockObjectWrapper
def _wxPyFontInit(id):
return StockGDI.instance().GetFont(id)
_wxPyStockPen = _wxPyMakeDelayedInitWrapper(StockGDI.GetPen)
_wxPyStockBrush = _wxPyMakeDelayedInitWrapper(StockGDI.GetBrush)
_wxPyStockCursor = _wxPyMakeDelayedInitWrapper(StockGDI.GetCursor)
_wxPyStockColour = _wxPyMakeDelayedInitWrapper(StockGDI.GetColour)
_wxPyStockFont = _wxPyMakeDelayedInitWrapper(_wxPyFontInit)
ITALIC_FONT = _wxPyStockCursor(StockGDI.FONT_ITALIC)
NORMAL_FONT = _wxPyStockCursor(StockGDI.FONT_NORMAL)
SMALL_FONT = _wxPyStockCursor(StockGDI.FONT_SMALL)
SWISS_FONT = _wxPyStockCursor(StockGDI.FONT_SWISS)
BLACK_DASHED_PEN = _wxPyStockPen(StockGDI.PEN_BLACKDASHED)
BLACK_PEN = _wxPyStockPen(StockGDI.PEN_BLACK)
CYAN_PEN = _wxPyStockPen(StockGDI.PEN_CYAN)
GREEN_PEN = _wxPyStockPen(StockGDI.PEN_GREEN)
GREY_PEN = _wxPyStockPen(StockGDI.PEN_GREY)
LIGHT_GREY_PEN = _wxPyStockPen(StockGDI.PEN_LIGHTGREY)
MEDIUM_GREY_PEN = _wxPyStockPen(StockGDI.PEN_MEDIUMGREY)
RED_PEN = _wxPyStockPen(StockGDI.PEN_RED)
TRANSPARENT_PEN = _wxPyStockPen(StockGDI.PEN_TRANSPARENT)
WHITE_PEN = _wxPyStockPen(StockGDI.PEN_WHITE)
BLACK_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_BLACK)
BLUE_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_BLUE)
CYAN_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_CYAN)
GREEN_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_GREEN)
GREY_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_GREY)
LIGHT_GREY_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_LIGHTGREY)
MEDIUM_GREY_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_MEDIUMGREY)
RED_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_RED)
TRANSPARENT_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_TRANSPARENT)
WHITE_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_WHITE)
BLACK = _wxPyStockColour(StockGDI.COLOUR_BLACK)
BLUE = _wxPyStockColour(StockGDI.COLOUR_BLUE)
CYAN = _wxPyStockColour(StockGDI.COLOUR_CYAN)
GREEN = _wxPyStockColour(StockGDI.COLOUR_GREEN)
LIGHT_GREY = _wxPyStockColour(StockGDI.COLOUR_LIGHTGREY)
RED = _wxPyStockColour(StockGDI.COLOUR_RED)
WHITE = _wxPyStockColour(StockGDI.COLOUR_WHITE)
CROSS_CURSOR = _wxPyStockCursor(StockGDI.CURSOR_CROSS)
HOURGLASS_CURSOR = _wxPyStockCursor(StockGDI.CURSOR_HOURGLASS)
STANDARD_CURSOR = _wxPyStockCursor(StockGDI.CURSOR_STANDARD)
class GDIObjListBase(object):
"""Proxy of C++ GDIObjListBase class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> GDIObjListBase"""
_gdi_.GDIObjListBase_swiginit(self,_gdi_.new_GDIObjListBase(*args, **kwargs))
__swig_destroy__ = _gdi_.delete_GDIObjListBase
__del__ = lambda self : None;
GDIObjListBase_swigregister = _gdi_.GDIObjListBase_swigregister
GDIObjListBase_swigregister(GDIObjListBase)
cvar = _gdi_.cvar
NORMAL_FONT = cvar.NORMAL_FONT
SMALL_FONT = cvar.SMALL_FONT
ITALIC_FONT = cvar.ITALIC_FONT
SWISS_FONT = cvar.SWISS_FONT
RED_PEN = cvar.RED_PEN
CYAN_PEN = cvar.CYAN_PEN
GREEN_PEN = cvar.GREEN_PEN
BLACK_PEN = cvar.BLACK_PEN
WHITE_PEN = cvar.WHITE_PEN
TRANSPARENT_PEN = cvar.TRANSPARENT_PEN
BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN
GREY_PEN = cvar.GREY_PEN
MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN
LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN
BLUE_BRUSH = cvar.BLUE_BRUSH
GREEN_BRUSH = cvar.GREEN_BRUSH
WHITE_BRUSH = cvar.WHITE_BRUSH
BLACK_BRUSH = cvar.BLACK_BRUSH
TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH
CYAN_BRUSH = cvar.CYAN_BRUSH
RED_BRUSH = cvar.RED_BRUSH
GREY_BRUSH = cvar.GREY_BRUSH
MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH
LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH
BLACK = cvar.BLACK
WHITE = cvar.WHITE
RED = cvar.RED
BLUE = cvar.BLUE
GREEN = cvar.GREEN
CYAN = cvar.CYAN
LIGHT_GREY = cvar.LIGHT_GREY
STANDARD_CURSOR = cvar.STANDARD_CURSOR
HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR
CROSS_CURSOR = cvar.CROSS_CURSOR
NullBitmap = cvar.NullBitmap
NullIcon = cvar.NullIcon
NullCursor = cvar.NullCursor
@ -4409,31 +4529,80 @@ NullPalette = cvar.NullPalette
NullFont = cvar.NullFont
NullColour = cvar.NullColour
class BrushList(_core.Object):
class PenList(GDIObjListBase):
"""Proxy of C++ PenList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def FindOrCreatePen(*args, **kwargs):
"""FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
return _gdi_.PenList_FindOrCreatePen(*args, **kwargs)
def AddPen(*args, **kwargs):
"""AddPen(self, Pen pen)"""
return _gdi_.PenList_AddPen(*args, **kwargs)
def RemovePen(*args, **kwargs):
"""RemovePen(self, Pen pen)"""
return _gdi_.PenList_RemovePen(*args, **kwargs)
AddPen = wx._deprecated(AddPen)
RemovePen = wx._deprecated(RemovePen)
PenList_swigregister = _gdi_.PenList_swigregister
PenList_swigregister(PenList)
class BrushList(GDIObjListBase):
"""Proxy of C++ BrushList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def AddBrush(*args, **kwargs):
"""AddBrush(self, Brush brush)"""
return _gdi_.BrushList_AddBrush(*args, **kwargs)
def FindOrCreateBrush(*args, **kwargs):
"""FindOrCreateBrush(self, Colour colour, int style=SOLID) -> Brush"""
return _gdi_.BrushList_FindOrCreateBrush(*args, **kwargs)
def AddBrush(*args, **kwargs):
"""AddBrush(self, Brush brush)"""
return _gdi_.BrushList_AddBrush(*args, **kwargs)
def RemoveBrush(*args, **kwargs):
"""RemoveBrush(self, Brush brush)"""
return _gdi_.BrushList_RemoveBrush(*args, **kwargs)
def GetCount(*args, **kwargs):
"""GetCount(self) -> int"""
return _gdi_.BrushList_GetCount(*args, **kwargs)
AddBrush = wx._deprecated(AddBrush)
RemoveBrush = wx._deprecated(RemoveBrush)
BrushList_swigregister = _gdi_.BrushList_swigregister
BrushList_swigregister(BrushList)
class ColourDatabase(_core.Object):
class FontList(GDIObjListBase):
"""Proxy of C++ FontList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def FindOrCreateFont(*args, **kwargs):
"""
FindOrCreateFont(self, int point_size, int family, int style, int weight,
bool underline=False, String facename=EmptyString,
int encoding=FONTENCODING_DEFAULT) -> Font
"""
return _gdi_.FontList_FindOrCreateFont(*args, **kwargs)
def AddFont(*args, **kwargs):
"""AddFont(self, Font font)"""
return _gdi_.FontList_AddFont(*args, **kwargs)
def RemoveFont(*args, **kwargs):
"""RemoveFont(self, Font font)"""
return _gdi_.FontList_RemoveFont(*args, **kwargs)
AddFont = wx._deprecated(AddFont)
RemoveFont = wx._deprecated(RemoveFont)
FontList_swigregister = _gdi_.FontList_swigregister
FontList_swigregister(FontList)
class ColourDatabase(object):
"""Proxy of C++ ColourDatabase class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
@ -4462,36 +4631,29 @@ class ColourDatabase(_core.Object):
ColourDatabase_swigregister = _gdi_.ColourDatabase_swigregister
ColourDatabase_swigregister(ColourDatabase)
class FontList(_core.Object):
"""Proxy of C++ FontList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def AddFont(*args, **kwargs):
"""AddFont(self, Font font)"""
return _gdi_.FontList_AddFont(*args, **kwargs)
def FindOrCreateFont(*args, **kwargs):
"""
FindOrCreateFont(self, int point_size, int family, int style, int weight,
bool underline=False, String facename=EmptyString,
int encoding=FONTENCODING_DEFAULT) -> Font
"""
return _gdi_.FontList_FindOrCreateFont(*args, **kwargs)
def RemoveFont(*args, **kwargs):
"""RemoveFont(self, Font font)"""
return _gdi_.FontList_RemoveFont(*args, **kwargs)
def GetCount(*args, **kwargs):
"""GetCount(self) -> int"""
return _gdi_.FontList_GetCount(*args, **kwargs)
FontList_swigregister = _gdi_.FontList_swigregister
FontList_swigregister(FontList)
#---------------------------------------------------------------------------
def _wxPyInitTheFontList(*args):
"""_wxPyInitTheFontList() -> FontList"""
return _gdi_._wxPyInitTheFontList(*args)
def _wxPyInitThePenList(*args):
"""_wxPyInitThePenList() -> PenList"""
return _gdi_._wxPyInitThePenList(*args)
def _wxPyInitTheBrushList(*args):
"""_wxPyInitTheBrushList() -> BrushList"""
return _gdi_._wxPyInitTheBrushList(*args)
def _wxPyInitTheColourDatabase(*args):
"""_wxPyInitTheColourDatabase() -> ColourDatabase"""
return _gdi_._wxPyInitTheColourDatabase(*args)
wxTheFontList = _wxPyMakeDelayedInitWrapper(_wxPyInitTheFontList)()
wxThePenList = _wxPyMakeDelayedInitWrapper(_wxPyInitThePenList)()
wxTheBrushList = _wxPyMakeDelayedInitWrapper(_wxPyInitTheBrushList)()
wxTheColourDatabase = _wxPyMakeDelayedInitWrapper(_wxPyInitTheColourDatabase)()
NullColor = NullColour
#---------------------------------------------------------------------------
@ -4559,10 +4721,6 @@ class Effects(_core.Object):
Effects_swigregister = _gdi_.Effects_swigregister
Effects_swigregister(Effects)
TheFontList = cvar.TheFontList
ThePenList = cvar.ThePenList
TheBrushList = cvar.TheBrushList
TheColourDatabase = cvar.TheColourDatabase
#---------------------------------------------------------------------------
@ -4732,6 +4890,15 @@ class RendererNative(object):
"""
return _gdi_.RendererNative_DrawDropArrow(*args, **kwargs)
def DrawCheckButton(*args, **kwargs):
"""
DrawCheckButton(self, Window win, DC dc, Rect rect, int flags=0)
Draw a check button. Flags may use wx.CONTROL_CHECKED,
wx.CONTROL_UNDETERMINED and wx.CONTROL_CURRENT.
"""
return _gdi_.RendererNative_DrawCheckButton(*args, **kwargs)
def GetSplitterParams(*args, **kwargs):
"""
GetSplitterParams(self, Window win) -> SplitterRenderParams

File diff suppressed because one or more lines are too long

View File

@ -5789,6 +5789,17 @@ class StandardPaths(object):
"""
return _misc_.StandardPaths_GetLocalizedResourcesDir(*args, **kwargs)
def GetDocumentsDir(*args, **kwargs):
"""
GetDocumentsDir(self) -> String
Return the Documents directory for the current user.
C:\Documents and Settings\username\Documents under Windows,
$HOME under Unix and ~/Documents under Mac
"""
return _misc_.StandardPaths_GetDocumentsDir(*args, **kwargs)
def SetInstallPrefix(*args, **kwargs):
"""
SetInstallPrefix(self, String prefix)

View File

@ -35805,6 +35805,40 @@ fail:
}
SWIGINTERN PyObject *_wrap_StandardPaths_GetDocumentsDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
wxString result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetDocumentsDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
}
arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = ((wxStandardPaths const *)arg1)->GetDocumentsDir();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
#if wxUSE_UNICODE
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
#else
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
#endif
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
@ -36800,6 +36834,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"StandardPaths_GetPluginsDir", (PyCFunction)_wrap_StandardPaths_GetPluginsDir, METH_O, NULL},
{ (char *)"StandardPaths_GetResourcesDir", (PyCFunction)_wrap_StandardPaths_GetResourcesDir, METH_O, NULL},
{ (char *)"StandardPaths_GetLocalizedResourcesDir", (PyCFunction) _wrap_StandardPaths_GetLocalizedResourcesDir, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"StandardPaths_GetDocumentsDir", (PyCFunction)_wrap_StandardPaths_GetDocumentsDir, METH_O, NULL},
{ (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"StandardPaths_GetInstallPrefix", (PyCFunction)_wrap_StandardPaths_GetInstallPrefix, METH_O, NULL},
{ (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},

View File

@ -724,7 +724,6 @@ class Object(object):
Object_swigregister = _core_.Object_swigregister
Object_swigregister(Object)
_wxPySetDictionary = _core_._wxPySetDictionary
_wxPyFixStockObjects = _core_._wxPyFixStockObjects
cvar = _core_.cvar
EmptyString = cvar.EmptyString
@ -9837,6 +9836,10 @@ class Menu(EvtHandler):
"""AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
return _core_.Menu_AppendMenu(*args, **kwargs)
def AppendSubMenu(*args, **kwargs):
"""AppendSubMenu(self, Menu submenu, String text, String help=EmptyString) -> MenuItem"""
return _core_.Menu_AppendSubMenu(*args, **kwargs)
def AppendItem(*args, **kwargs):
"""AppendItem(self, MenuItem item) -> MenuItem"""
return _core_.Menu_AppendItem(*args, **kwargs)
@ -12926,11 +12929,6 @@ from _windows import *
from _controls import *
from _misc import *
# Fixup the stock objects since they can't be used yet. (They will be
# restored in wx.PyApp.OnInit.)
_core_._wxPyFixStockObjects()
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------

View File

@ -38437,6 +38437,82 @@ fail:
}
SWIGINTERN PyObject *_wrap_Menu_AppendSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) 0 ;
wxMenu *arg2 = (wxMenu *) 0 ;
wxString *arg3 = 0 ;
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString *arg4 = (wxString *) &arg4_defvalue ;
wxMenuItem *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool temp3 = false ;
bool temp4 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
char * kwnames[] = {
(char *) "self",(char *) "submenu",(char *) "text",(char *) "help", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendSubMenu",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSubMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
}
arg1 = reinterpret_cast< wxMenu * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
}
arg2 = reinterpret_cast< wxMenu * >(argp2);
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
temp3 = true;
}
if (obj3) {
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
temp4 = true;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (wxMenuItem *)(arg1)->AppendSubMenu(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
resultobj = wxPyMake_wxObject(result, (bool)0);
}
{
if (temp3)
delete arg3;
}
{
if (temp4)
delete arg4;
}
return resultobj;
fail:
{
if (temp3)
delete arg3;
}
{
if (temp4)
delete arg4;
}
return NULL;
}
SWIGINTERN PyObject *_wrap_Menu_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) 0 ;
@ -52418,7 +52494,6 @@ SWIGINTERN PyObject *LayoutConstraints_swiginit(PyObject *SWIGUNUSEDPARM(self),
static PyMethodDef SwigMethods[] = {
{ (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL},
{ (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL},
{ (char *)"Object_GetClassName", (PyCFunction)_wrap_Object_GetClassName, METH_O, NULL},
{ (char *)"Object_Destroy", (PyCFunction)_wrap_Object_Destroy, METH_O, NULL},
{ (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL},
@ -53492,6 +53567,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendSubMenu", (PyCFunction) _wrap_Menu_AppendSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},

View File

@ -64,14 +64,6 @@ class GDIObject(_core.Object):
_gdi_.GDIObject_swiginit(self,_gdi_.new_GDIObject(*args, **kwargs))
__swig_destroy__ = _gdi_.delete_GDIObject
__del__ = lambda self : None;
def GetVisible(*args, **kwargs):
"""GetVisible(self) -> bool"""
return _gdi_.GDIObject_GetVisible(*args, **kwargs)
def SetVisible(*args, **kwargs):
"""SetVisible(self, bool visible)"""
return _gdi_.GDIObject_SetVisible(*args, **kwargs)
def IsNull(*args, **kwargs):
"""IsNull(self) -> bool"""
return _gdi_.GDIObject_IsNull(*args, **kwargs)
@ -4465,64 +4457,192 @@ ImageList_swigregister(ImageList)
#---------------------------------------------------------------------------
class PenList(_core.Object):
"""Proxy of C++ PenList class"""
class StockGDI(object):
"""Proxy of C++ StockGDI class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def AddPen(*args, **kwargs):
"""AddPen(self, Pen pen)"""
return _gdi_.PenList_AddPen(*args, **kwargs)
BRUSH_BLACK = _gdi_.StockGDI_BRUSH_BLACK
BRUSH_BLUE = _gdi_.StockGDI_BRUSH_BLUE
BRUSH_CYAN = _gdi_.StockGDI_BRUSH_CYAN
BRUSH_GREEN = _gdi_.StockGDI_BRUSH_GREEN
BRUSH_GREY = _gdi_.StockGDI_BRUSH_GREY
BRUSH_LIGHTGREY = _gdi_.StockGDI_BRUSH_LIGHTGREY
BRUSH_MEDIUMGREY = _gdi_.StockGDI_BRUSH_MEDIUMGREY
BRUSH_RED = _gdi_.StockGDI_BRUSH_RED
BRUSH_TRANSPARENT = _gdi_.StockGDI_BRUSH_TRANSPARENT
BRUSH_WHITE = _gdi_.StockGDI_BRUSH_WHITE
COLOUR_BLACK = _gdi_.StockGDI_COLOUR_BLACK
COLOUR_BLUE = _gdi_.StockGDI_COLOUR_BLUE
COLOUR_CYAN = _gdi_.StockGDI_COLOUR_CYAN
COLOUR_GREEN = _gdi_.StockGDI_COLOUR_GREEN
COLOUR_LIGHTGREY = _gdi_.StockGDI_COLOUR_LIGHTGREY
COLOUR_RED = _gdi_.StockGDI_COLOUR_RED
COLOUR_WHITE = _gdi_.StockGDI_COLOUR_WHITE
CURSOR_CROSS = _gdi_.StockGDI_CURSOR_CROSS
CURSOR_HOURGLASS = _gdi_.StockGDI_CURSOR_HOURGLASS
CURSOR_STANDARD = _gdi_.StockGDI_CURSOR_STANDARD
FONT_ITALIC = _gdi_.StockGDI_FONT_ITALIC
FONT_NORMAL = _gdi_.StockGDI_FONT_NORMAL
FONT_SMALL = _gdi_.StockGDI_FONT_SMALL
FONT_SWISS = _gdi_.StockGDI_FONT_SWISS
PEN_BLACK = _gdi_.StockGDI_PEN_BLACK
PEN_BLACKDASHED = _gdi_.StockGDI_PEN_BLACKDASHED
PEN_CYAN = _gdi_.StockGDI_PEN_CYAN
PEN_GREEN = _gdi_.StockGDI_PEN_GREEN
PEN_GREY = _gdi_.StockGDI_PEN_GREY
PEN_LIGHTGREY = _gdi_.StockGDI_PEN_LIGHTGREY
PEN_MEDIUMGREY = _gdi_.StockGDI_PEN_MEDIUMGREY
PEN_RED = _gdi_.StockGDI_PEN_RED
PEN_TRANSPARENT = _gdi_.StockGDI_PEN_TRANSPARENT
PEN_WHITE = _gdi_.StockGDI_PEN_WHITE
ITEMCOUNT = _gdi_.StockGDI_ITEMCOUNT
def __init__(self, *args, **kwargs):
"""__init__(self) -> StockGDI"""
_gdi_.StockGDI_swiginit(self,_gdi_.new_StockGDI(*args, **kwargs))
__swig_destroy__ = _gdi_.delete_StockGDI
__del__ = lambda self : None;
def DeleteAll(*args, **kwargs):
"""DeleteAll()"""
return _gdi_.StockGDI_DeleteAll(*args, **kwargs)
def FindOrCreatePen(*args, **kwargs):
"""FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
return _gdi_.PenList_FindOrCreatePen(*args, **kwargs)
DeleteAll = staticmethod(DeleteAll)
def instance(*args, **kwargs):
"""instance() -> StockGDI"""
return _gdi_.StockGDI_instance(*args, **kwargs)
def RemovePen(*args, **kwargs):
"""RemovePen(self, Pen pen)"""
return _gdi_.PenList_RemovePen(*args, **kwargs)
instance = staticmethod(instance)
def GetBrush(*args, **kwargs):
"""GetBrush(int item) -> Brush"""
return _gdi_.StockGDI_GetBrush(*args, **kwargs)
def GetCount(*args, **kwargs):
"""GetCount(self) -> int"""
return _gdi_.PenList_GetCount(*args, **kwargs)
GetBrush = staticmethod(GetBrush)
def GetColour(*args, **kwargs):
"""GetColour(int item) -> Colour"""
return _gdi_.StockGDI_GetColour(*args, **kwargs)
PenList_swigregister = _gdi_.PenList_swigregister
PenList_swigregister(PenList)
GetColour = staticmethod(GetColour)
def GetCursor(*args, **kwargs):
"""GetCursor(int item) -> Cursor"""
return _gdi_.StockGDI_GetCursor(*args, **kwargs)
GetCursor = staticmethod(GetCursor)
def GetPen(*args, **kwargs):
"""GetPen(int item) -> Pen"""
return _gdi_.StockGDI_GetPen(*args, **kwargs)
GetPen = staticmethod(GetPen)
def GetFont(*args, **kwargs):
"""GetFont(self, int item) -> Font"""
return _gdi_.StockGDI_GetFont(*args, **kwargs)
StockGDI_swigregister = _gdi_.StockGDI_swigregister
StockGDI_swigregister(StockGDI)
def StockGDI_DeleteAll(*args):
"""StockGDI_DeleteAll()"""
return _gdi_.StockGDI_DeleteAll(*args)
def StockGDI_instance(*args):
"""StockGDI_instance() -> StockGDI"""
return _gdi_.StockGDI_instance(*args)
def StockGDI_GetBrush(*args, **kwargs):
"""StockGDI_GetBrush(int item) -> Brush"""
return _gdi_.StockGDI_GetBrush(*args, **kwargs)
def StockGDI_GetColour(*args, **kwargs):
"""StockGDI_GetColour(int item) -> Colour"""
return _gdi_.StockGDI_GetColour(*args, **kwargs)
def StockGDI_GetCursor(*args, **kwargs):
"""StockGDI_GetCursor(int item) -> Cursor"""
return _gdi_.StockGDI_GetCursor(*args, **kwargs)
def StockGDI_GetPen(*args, **kwargs):
"""StockGDI_GetPen(int item) -> Pen"""
return _gdi_.StockGDI_GetPen(*args, **kwargs)
# This function makes a class used to do delayed initialization of some
# stock wx objects. When they are used the first time then an init function
# is called to make the real instance, which is then used to replace the
# original instance and class seen by the programmer.
def _wxPyMakeDelayedInitWrapper(initFunc):
class _wxPyStockObjectWrapper(object):
def __init__(self, *args):
self._args = args
def __getattr__(self, name):
obj = initFunc(*self._args)
self.__class__ = obj.__class__
self.__dict__ = obj.__dict__
return getattr(self, name)
def __str__(self):
return self.__getattr__("__str__")()
def __repr__(self):
return self.__getattr__("__repr__")()
return _wxPyStockObjectWrapper
def _wxPyFontInit(id):
return StockGDI.instance().GetFont(id)
_wxPyStockPen = _wxPyMakeDelayedInitWrapper(StockGDI.GetPen)
_wxPyStockBrush = _wxPyMakeDelayedInitWrapper(StockGDI.GetBrush)
_wxPyStockCursor = _wxPyMakeDelayedInitWrapper(StockGDI.GetCursor)
_wxPyStockColour = _wxPyMakeDelayedInitWrapper(StockGDI.GetColour)
_wxPyStockFont = _wxPyMakeDelayedInitWrapper(_wxPyFontInit)
ITALIC_FONT = _wxPyStockCursor(StockGDI.FONT_ITALIC)
NORMAL_FONT = _wxPyStockCursor(StockGDI.FONT_NORMAL)
SMALL_FONT = _wxPyStockCursor(StockGDI.FONT_SMALL)
SWISS_FONT = _wxPyStockCursor(StockGDI.FONT_SWISS)
BLACK_DASHED_PEN = _wxPyStockPen(StockGDI.PEN_BLACKDASHED)
BLACK_PEN = _wxPyStockPen(StockGDI.PEN_BLACK)
CYAN_PEN = _wxPyStockPen(StockGDI.PEN_CYAN)
GREEN_PEN = _wxPyStockPen(StockGDI.PEN_GREEN)
GREY_PEN = _wxPyStockPen(StockGDI.PEN_GREY)
LIGHT_GREY_PEN = _wxPyStockPen(StockGDI.PEN_LIGHTGREY)
MEDIUM_GREY_PEN = _wxPyStockPen(StockGDI.PEN_MEDIUMGREY)
RED_PEN = _wxPyStockPen(StockGDI.PEN_RED)
TRANSPARENT_PEN = _wxPyStockPen(StockGDI.PEN_TRANSPARENT)
WHITE_PEN = _wxPyStockPen(StockGDI.PEN_WHITE)
BLACK_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_BLACK)
BLUE_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_BLUE)
CYAN_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_CYAN)
GREEN_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_GREEN)
GREY_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_GREY)
LIGHT_GREY_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_LIGHTGREY)
MEDIUM_GREY_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_MEDIUMGREY)
RED_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_RED)
TRANSPARENT_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_TRANSPARENT)
WHITE_BRUSH = _wxPyStockBrush(StockGDI.BRUSH_WHITE)
BLACK = _wxPyStockColour(StockGDI.COLOUR_BLACK)
BLUE = _wxPyStockColour(StockGDI.COLOUR_BLUE)
CYAN = _wxPyStockColour(StockGDI.COLOUR_CYAN)
GREEN = _wxPyStockColour(StockGDI.COLOUR_GREEN)
LIGHT_GREY = _wxPyStockColour(StockGDI.COLOUR_LIGHTGREY)
RED = _wxPyStockColour(StockGDI.COLOUR_RED)
WHITE = _wxPyStockColour(StockGDI.COLOUR_WHITE)
CROSS_CURSOR = _wxPyStockCursor(StockGDI.CURSOR_CROSS)
HOURGLASS_CURSOR = _wxPyStockCursor(StockGDI.CURSOR_HOURGLASS)
STANDARD_CURSOR = _wxPyStockCursor(StockGDI.CURSOR_STANDARD)
class GDIObjListBase(object):
"""Proxy of C++ GDIObjListBase class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> GDIObjListBase"""
_gdi_.GDIObjListBase_swiginit(self,_gdi_.new_GDIObjListBase(*args, **kwargs))
__swig_destroy__ = _gdi_.delete_GDIObjListBase
__del__ = lambda self : None;
GDIObjListBase_swigregister = _gdi_.GDIObjListBase_swigregister
GDIObjListBase_swigregister(GDIObjListBase)
cvar = _gdi_.cvar
NORMAL_FONT = cvar.NORMAL_FONT
SMALL_FONT = cvar.SMALL_FONT
ITALIC_FONT = cvar.ITALIC_FONT
SWISS_FONT = cvar.SWISS_FONT
RED_PEN = cvar.RED_PEN
CYAN_PEN = cvar.CYAN_PEN
GREEN_PEN = cvar.GREEN_PEN
BLACK_PEN = cvar.BLACK_PEN
WHITE_PEN = cvar.WHITE_PEN
TRANSPARENT_PEN = cvar.TRANSPARENT_PEN
BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN
GREY_PEN = cvar.GREY_PEN
MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN
LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN
BLUE_BRUSH = cvar.BLUE_BRUSH
GREEN_BRUSH = cvar.GREEN_BRUSH
WHITE_BRUSH = cvar.WHITE_BRUSH
BLACK_BRUSH = cvar.BLACK_BRUSH
TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH
CYAN_BRUSH = cvar.CYAN_BRUSH
RED_BRUSH = cvar.RED_BRUSH
GREY_BRUSH = cvar.GREY_BRUSH
MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH
LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH
BLACK = cvar.BLACK
WHITE = cvar.WHITE
RED = cvar.RED
BLUE = cvar.BLUE
GREEN = cvar.GREEN
CYAN = cvar.CYAN
LIGHT_GREY = cvar.LIGHT_GREY
STANDARD_CURSOR = cvar.STANDARD_CURSOR
HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR
CROSS_CURSOR = cvar.CROSS_CURSOR
NullBitmap = cvar.NullBitmap
NullIcon = cvar.NullIcon
NullCursor = cvar.NullCursor
@ -4532,31 +4652,80 @@ NullPalette = cvar.NullPalette
NullFont = cvar.NullFont
NullColour = cvar.NullColour
class BrushList(_core.Object):
class PenList(GDIObjListBase):
"""Proxy of C++ PenList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def FindOrCreatePen(*args, **kwargs):
"""FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
return _gdi_.PenList_FindOrCreatePen(*args, **kwargs)
def AddPen(*args, **kwargs):
"""AddPen(self, Pen pen)"""
return _gdi_.PenList_AddPen(*args, **kwargs)
def RemovePen(*args, **kwargs):
"""RemovePen(self, Pen pen)"""
return _gdi_.PenList_RemovePen(*args, **kwargs)
AddPen = wx._deprecated(AddPen)
RemovePen = wx._deprecated(RemovePen)
PenList_swigregister = _gdi_.PenList_swigregister
PenList_swigregister(PenList)
class BrushList(GDIObjListBase):
"""Proxy of C++ BrushList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def AddBrush(*args, **kwargs):
"""AddBrush(self, Brush brush)"""
return _gdi_.BrushList_AddBrush(*args, **kwargs)
def FindOrCreateBrush(*args, **kwargs):
"""FindOrCreateBrush(self, Colour colour, int style=SOLID) -> Brush"""
return _gdi_.BrushList_FindOrCreateBrush(*args, **kwargs)
def AddBrush(*args, **kwargs):
"""AddBrush(self, Brush brush)"""
return _gdi_.BrushList_AddBrush(*args, **kwargs)
def RemoveBrush(*args, **kwargs):
"""RemoveBrush(self, Brush brush)"""
return _gdi_.BrushList_RemoveBrush(*args, **kwargs)
def GetCount(*args, **kwargs):
"""GetCount(self) -> int"""
return _gdi_.BrushList_GetCount(*args, **kwargs)
AddBrush = wx._deprecated(AddBrush)
RemoveBrush = wx._deprecated(RemoveBrush)
BrushList_swigregister = _gdi_.BrushList_swigregister
BrushList_swigregister(BrushList)
class ColourDatabase(_core.Object):
class FontList(GDIObjListBase):
"""Proxy of C++ FontList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def FindOrCreateFont(*args, **kwargs):
"""
FindOrCreateFont(self, int point_size, int family, int style, int weight,
bool underline=False, String facename=EmptyString,
int encoding=FONTENCODING_DEFAULT) -> Font
"""
return _gdi_.FontList_FindOrCreateFont(*args, **kwargs)
def AddFont(*args, **kwargs):
"""AddFont(self, Font font)"""
return _gdi_.FontList_AddFont(*args, **kwargs)
def RemoveFont(*args, **kwargs):
"""RemoveFont(self, Font font)"""
return _gdi_.FontList_RemoveFont(*args, **kwargs)
AddFont = wx._deprecated(AddFont)
RemoveFont = wx._deprecated(RemoveFont)
FontList_swigregister = _gdi_.FontList_swigregister
FontList_swigregister(FontList)
class ColourDatabase(object):
"""Proxy of C++ ColourDatabase class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
@ -4585,36 +4754,29 @@ class ColourDatabase(_core.Object):
ColourDatabase_swigregister = _gdi_.ColourDatabase_swigregister
ColourDatabase_swigregister(ColourDatabase)
class FontList(_core.Object):
"""Proxy of C++ FontList class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
def AddFont(*args, **kwargs):
"""AddFont(self, Font font)"""
return _gdi_.FontList_AddFont(*args, **kwargs)
def FindOrCreateFont(*args, **kwargs):
"""
FindOrCreateFont(self, int point_size, int family, int style, int weight,
bool underline=False, String facename=EmptyString,
int encoding=FONTENCODING_DEFAULT) -> Font
"""
return _gdi_.FontList_FindOrCreateFont(*args, **kwargs)
def RemoveFont(*args, **kwargs):
"""RemoveFont(self, Font font)"""
return _gdi_.FontList_RemoveFont(*args, **kwargs)
def GetCount(*args, **kwargs):
"""GetCount(self) -> int"""
return _gdi_.FontList_GetCount(*args, **kwargs)
FontList_swigregister = _gdi_.FontList_swigregister
FontList_swigregister(FontList)
#---------------------------------------------------------------------------
def _wxPyInitTheFontList(*args):
"""_wxPyInitTheFontList() -> FontList"""
return _gdi_._wxPyInitTheFontList(*args)
def _wxPyInitThePenList(*args):
"""_wxPyInitThePenList() -> PenList"""
return _gdi_._wxPyInitThePenList(*args)
def _wxPyInitTheBrushList(*args):
"""_wxPyInitTheBrushList() -> BrushList"""
return _gdi_._wxPyInitTheBrushList(*args)
def _wxPyInitTheColourDatabase(*args):
"""_wxPyInitTheColourDatabase() -> ColourDatabase"""
return _gdi_._wxPyInitTheColourDatabase(*args)
wxTheFontList = _wxPyMakeDelayedInitWrapper(_wxPyInitTheFontList)()
wxThePenList = _wxPyMakeDelayedInitWrapper(_wxPyInitThePenList)()
wxTheBrushList = _wxPyMakeDelayedInitWrapper(_wxPyInitTheBrushList)()
wxTheColourDatabase = _wxPyMakeDelayedInitWrapper(_wxPyInitTheColourDatabase)()
NullColor = NullColour
#---------------------------------------------------------------------------
@ -4682,10 +4844,6 @@ class Effects(_core.Object):
Effects_swigregister = _gdi_.Effects_swigregister
Effects_swigregister(Effects)
TheFontList = cvar.TheFontList
ThePenList = cvar.ThePenList
TheBrushList = cvar.TheBrushList
TheColourDatabase = cvar.TheColourDatabase
#---------------------------------------------------------------------------
@ -4855,6 +5013,15 @@ class RendererNative(object):
"""
return _gdi_.RendererNative_DrawDropArrow(*args, **kwargs)
def DrawCheckButton(*args, **kwargs):
"""
DrawCheckButton(self, Window win, DC dc, Rect rect, int flags=0)
Draw a check button. Flags may use wx.CONTROL_CHECKED,
wx.CONTROL_UNDETERMINED and wx.CONTROL_CURRENT.
"""
return _gdi_.RendererNative_DrawCheckButton(*args, **kwargs)
def GetSplitterParams(*args, **kwargs):
"""
GetSplitterParams(self, Window win) -> SplitterRenderParams

File diff suppressed because one or more lines are too long

View File

@ -5797,6 +5797,17 @@ class StandardPaths(object):
"""
return _misc_.StandardPaths_GetLocalizedResourcesDir(*args, **kwargs)
def GetDocumentsDir(*args, **kwargs):
"""
GetDocumentsDir(self) -> String
Return the Documents directory for the current user.
C:\Documents and Settings\username\Documents under Windows,
$HOME under Unix and ~/Documents under Mac
"""
return _misc_.StandardPaths_GetDocumentsDir(*args, **kwargs)
def SetInstallPrefix(*args, **kwargs):
"""
SetInstallPrefix(self, String prefix)

View File

@ -35866,6 +35866,40 @@ fail:
}
SWIGINTERN PyObject *_wrap_StandardPaths_GetDocumentsDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
wxString result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetDocumentsDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
}
arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = ((wxStandardPaths const *)arg1)->GetDocumentsDir();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
#if wxUSE_UNICODE
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
#else
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
#endif
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
@ -36863,6 +36897,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"StandardPaths_GetPluginsDir", (PyCFunction)_wrap_StandardPaths_GetPluginsDir, METH_O, NULL},
{ (char *)"StandardPaths_GetResourcesDir", (PyCFunction)_wrap_StandardPaths_GetResourcesDir, METH_O, NULL},
{ (char *)"StandardPaths_GetLocalizedResourcesDir", (PyCFunction) _wrap_StandardPaths_GetLocalizedResourcesDir, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"StandardPaths_GetDocumentsDir", (PyCFunction)_wrap_StandardPaths_GetDocumentsDir, METH_O, NULL},
{ (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"StandardPaths_GetInstallPrefix", (PyCFunction)_wrap_StandardPaths_GetInstallPrefix, METH_O, NULL},
{ (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},

View File

@ -20,26 +20,16 @@ del sys, _wx
# Now assign all the reverse-renamed names:
CLSID = wx.activex.CLSID
CLSIDPtr = wx.activex.CLSIDPtr
wxParamX = wx.activex.ParamX
wxParamXPtr = wx.activex.ParamXPtr
wxFuncX = wx.activex.FuncX
wxFuncXPtr = wx.activex.FuncXPtr
wxPropX = wx.activex.PropX
wxPropXPtr = wx.activex.PropXPtr
wxParamXArray = wx.activex.ParamXArray
wxParamXArrayPtr = wx.activex.ParamXArrayPtr
wxFuncXArray = wx.activex.FuncXArray
wxFuncXArrayPtr = wx.activex.FuncXArrayPtr
wxPropXArray = wx.activex.PropXArray
wxPropXArrayPtr = wx.activex.PropXArrayPtr
wxActiveXWindow = wx.activex.ActiveXWindow
wxActiveXWindowPtr = wx.activex.ActiveXWindowPtr
RegisterActiveXEvent = wx.activex.RegisterActiveXEvent
wxActiveXEvent = wx.activex.ActiveXEvent
wxActiveXEventPtr = wx.activex.ActiveXEventPtr
wxIEHtmlWindowBase = wx.activex.IEHtmlWindowBase
wxIEHtmlWindowBasePtr = wx.activex.IEHtmlWindowBasePtr
d = globals()