+ 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)