X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2481a3763b80b30e97a949859dfacb461ed65a6d..e90ed8ad58cec4f308fa479c8035a2c22ec98cf5:/wxPython/src/gtk/windows3.py diff --git a/wxPython/src/gtk/windows3.py b/wxPython/src/gtk/windows3.py index ff840528be..c7a571f564 100644 --- a/wxPython/src/gtk/windows3.py +++ b/wxPython/src/gtk/windows3.py @@ -5,6 +5,8 @@ from misc import * from gdi import * +from fonts import * + from windows import * from clip_dnd import * @@ -244,9 +246,12 @@ class wxLayoutAlgorithmPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 - def __del__(self,windows3c=windows3c): - if self.thisown == 1 : - windows3c.delete_wxLayoutAlgorithm(self) + def __del__(self, delfunc=windows3c.delete_wxLayoutAlgorithm): + if self.thisown == 1: + try: + delfunc(self) + except: + pass def LayoutMDIFrame(self, *_args, **_kwargs): val = apply(windows3c.wxLayoutAlgorithm_LayoutMDIFrame,(self,) + _args, _kwargs) return val @@ -328,6 +333,12 @@ class wxTipWindowPtr(wxPopupTransientWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 + def SetBoundingRect(self, *_args, **_kwargs): + val = apply(windows3c.wxTipWindow_SetBoundingRect,(self,) + _args, _kwargs) + return val + def Close(self, *_args, **_kwargs): + val = apply(windows3c.wxTipWindow_Close,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxTipWindow(wxTipWindowPtr):