diff --git a/wx/lib/agw/__init__.py b/wx/lib/agw/__init__.py index c215993a..b648be9c 100644 --- a/wx/lib/agw/__init__.py +++ b/wx/lib/agw/__init__.py @@ -120,7 +120,7 @@ andrea.gavana@maerskoil.com AGW version: 0.9.7 -Last updated: 18 February 2013, 21.00 GMT +Last updated: 28 February 2013, 21.00 GMT """ diff --git a/wx/lib/agw/floatspin.py b/wx/lib/agw/floatspin.py index 0e0886da..9f750a4e 100644 --- a/wx/lib/agw/floatspin.py +++ b/wx/lib/agw/floatspin.py @@ -3,7 +3,7 @@ # Python Code By: # # Andrea Gavana, @ 16 Nov 2005 -# Latest Revision: 27 Dec 2012, 21.00 GMT +# Latest Revision: 28 Feb 2013, 21.00 GMT # # # TODO List/Caveats @@ -136,7 +136,7 @@ License And Version :class:`FloatSpin` control is distributed under the wxPython license. -Latest revision: Andrea Gavana @ 27 Dec 2012, 21.00 GMT +Latest revision: Andrea Gavana @ 28 Feb 2013, 21.00 GMT Version 1.0 @@ -1584,6 +1584,18 @@ class FixedPoint(object): def __int__(self): return int(self.__long__()) + def __lt__(self, other): + if other is None: + return 1 + xn, yn, p = _norm(self, other) + return xn < yn + + def __gt__(self, other): + if other is None: + return 1 + xn, yn, p = _norm(self, other) + return xn > yn + def frac(self): """ Returns fractional portion as a :class:`FixedPoint`.