X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/091f5bedb451e8053afd8ebd81091bee58ce5f47..b41b09e28513f8b30065914eeb1051a0a32e6e1b:/wxPython/src/gtk/_core.py diff --git a/wxPython/src/gtk/_core.py b/wxPython/src/gtk/_core.py index d5db1b7c2c..39847bbff4 100644 --- a/wxPython/src/gtk/_core.py +++ b/wxPython/src/gtk/_core.py @@ -1,4 +1,4 @@ -# This file was created automatically by SWIG. +# This file was created automatically by SWIG 1.3.27. # Don't modify this file, modify the SWIG interface instead. import _core_ @@ -708,7 +708,9 @@ class Object(object): Deletes the C++ object this Python object is a proxy for. """ - return _core_.Object_Destroy(*args, **kwargs) + val = _core_.Object_Destroy(*args, **kwargs) + args[0].thisown = 0 + return val class ObjectPtr(Object): @@ -2415,7 +2417,9 @@ class Image(Object): Destroys the image data. """ - return _core_.Image_Destroy(*args, **kwargs) + val = _core_.Image_Destroy(*args, **kwargs) + args[0].thisown = 0 + return val def Scale(*args, **kwargs): """ @@ -2937,6 +2941,16 @@ class Image(Object): """ return _core_.Image_Replace(*args, **kwargs) + def ConvertToGreyscale(*args, **kwargs): + """ + ConvertToGreyscale(self, double lr=0.299, double lg=0.587, double lb=0.114) -> Image + + Convert to greyscale image. Uses the luminance component (Y) of the + image. The luma value (YUV) is calculated using (R * lr) + (G * lg) + (B * lb), + defaults to ITU-T BT.601 + """ + return _core_.Image_ConvertToGreyscale(*args, **kwargs) + def ConvertToMono(*args, **kwargs): """ ConvertToMono(self, byte r, byte g, byte b) -> Image @@ -3586,7 +3600,9 @@ class EvtHandler(Object): def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self, bool incref=True)""" - return _core_.EvtHandler__setOORInfo(*args, **kwargs) + val = _core_.EvtHandler__setOORInfo(*args, **kwargs) + args[0].thisown = 0 + return val def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): """ @@ -8099,7 +8115,9 @@ class Window(EvtHandler): Returns True if the window has either been successfully deleted, or it has been added to the list of windows pending real deletion. """ - return _core_.Window_Destroy(*args, **kwargs) + val = _core_.Window_Destroy(*args, **kwargs) + args[0].thisown = 0 + return val def DestroyChildren(*args, **kwargs): """ @@ -10147,6 +10165,9 @@ class Window(EvtHandler): if hasattr(self, '_setCallbackInfo'): self._setCallbackInfo(self, self.__class__) + def SendSizeEvent(self): + self.GetEventhandler().ProcessEvent(wx.SizeEvent((-1,-1))) + class WindowPtr(Window): def __init__(self, this): @@ -10503,7 +10524,9 @@ class Menu(EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _core_.Menu_Destroy(*args, **kwargs) + val = _core_.Menu_Destroy(*args, **kwargs) + args[0].thisown = 0 + return val def DestroyId(*args, **kwargs): """ @@ -10511,7 +10534,9 @@ class Menu(EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _core_.Menu_DestroyId(*args, **kwargs) + val = _core_.Menu_DestroyId(*args, **kwargs) + args[0].thisown = 0 + return val def DestroyItem(*args, **kwargs): """ @@ -10519,7 +10544,9 @@ class Menu(EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _core_.Menu_DestroyItem(*args, **kwargs) + val = _core_.Menu_DestroyItem(*args, **kwargs) + args[0].thisown = 0 + return val def GetMenuItemCount(*args, **kwargs): """GetMenuItemCount(self) -> size_t""" @@ -11326,6 +11353,12 @@ class SizerItem(Object): self.this = newobj.this self.thisown = 1 del newobj.thisown + def __del__(self, destroy=_core_.delete_SizerItem): + """__del__(self)""" + try: + if self.thisown: destroy(self) + except: pass + def DeleteWindows(*args, **kwargs): """ DeleteWindows(self) @@ -11671,6 +11704,12 @@ class Sizer(Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __del__(self, destroy=_core_.delete_Sizer): + """__del__(self)""" + try: + if self.thisown: destroy(self) + except: pass + def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self)""" return _core_.Sizer__setOORInfo(*args, **kwargs) @@ -12594,6 +12633,12 @@ class GBPosition(object): self.this = newobj.this self.thisown = 1 del newobj.thisown + def __del__(self, destroy=_core_.delete_GBPosition): + """__del__(self)""" + try: + if self.thisown: destroy(self) + except: pass + def GetRow(*args, **kwargs): """GetRow(self) -> int""" return _core_.GBPosition_GetRow(*args, **kwargs) @@ -12673,6 +12718,12 @@ class GBSpan(object): self.this = newobj.this self.thisown = 1 del newobj.thisown + def __del__(self, destroy=_core_.delete_GBSpan): + """__del__(self)""" + try: + if self.thisown: destroy(self) + except: pass + def GetRowspan(*args, **kwargs): """GetRowspan(self) -> int""" return _core_.GBSpan_GetRowspan(*args, **kwargs) @@ -12753,6 +12804,12 @@ class GBSizerItem(SizerItem): self.this = newobj.this self.thisown = 1 del newobj.thisown + def __del__(self, destroy=_core_.delete_GBSizerItem): + """__del__(self)""" + try: + if self.thisown: destroy(self) + except: pass + def GetPos(*args, **kwargs): """ GetPos(self) -> GBPosition @@ -13626,3 +13683,4 @@ _core_._wxPyFixStockObjects() #---------------------------------------------------------------------------- +