From f129aba820f55037ac23f9c316cd9dfa261befac Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 20 Dec 2002 03:34:49 +0000 Subject: [PATCH] SWIGged updates for wxMac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/mac/gdi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wxPython/src/mac/gdi.py b/wxPython/src/mac/gdi.py index 8cffba5687..b52479cbb7 100644 --- a/wxPython/src/mac/gdi.py +++ b/wxPython/src/mac/gdi.py @@ -4,6 +4,7 @@ import gdic from misc import * from fonts import * +import wx class wxGDIObjectPtr(wxObjectPtr): def __init__(self,this): self.this = this @@ -256,9 +257,9 @@ class wxColourPtr(wxObjectPtr): def __repr__(self): return "" % (self.this,) asTuple = Get - def __str__(self): return str(self.asTuple()) - def __repr__(self): return str(self.asTuple()) - def __nonzero__(self): return self.asTuple() != (0,0,0) + def __str__(self): return str(self.asTuple()) + def __repr__(self): return str(self.asTuple()) + def __nonzero__(self): return self.Ok() class wxColour(wxColourPtr): def __init__(self,*_args,**_kwargs):