Yes, one just defines __add__ and __sub__ (I think) functions in the wxPoint class definition. I could write a wrapper for wxPoint easily but it would be a useful feature in the standard wxPython.
Nigel
···
From: Jan Reimers <janr@molienergy.com>
Subject: RE: [wxPython] wxPoint overloading
Reply-To: wxpython-users@lists.sourceforge.net
Date: Wed, 18 Oct 2000 16:16:39 -0700Does python support operator overloading?
-----Original Message-----
From: nw_moriarty Last Name [mailto:nw_moriarty@my-deja.com]
Sent: Wednesday, October 18, 2000 1:20 PM
To: wxpython-users@lists.sourceforge.net
Subject: [wxPython] wxPoint overloadingIt would be very convenient if instances of wxPoint could be
added and subtracted.Nigel
------------------------------------------------------------
--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy._______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users
------------------------------------------------------------
--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users