Pheonix: agw\floatspin.py: FixedPoint missing __lt__ and __gt__

HI,

Using the following build:

wxPython-Phoenix-r73568-win64-py3.3

I have the following error:

File "\Python33\lib\site-packages\wx\lib\agw\floatspin.py", line 379, in
__init__
    self._value = self.ClampValue(FixedPoint(str(value), 20))
  File "Python33\lib\site-packages\wx\lib\agw\floatspin.py", line 897, in
ClampValue
    if (var < self._min):
TypeError: unorderable types: FixedPoint() < FixedPoint()

If I add the following to the FixedPoint class the error goes away:

    def __lt__(self, other):
        if (other == None):
            return 1
        xn, yn, p = _norm(self, other)
        return xn < yn

    def __gt__(self, other):
        if (other == None):
            return 1
        xn, yn, p = _norm(self, other)
        return xn > yn

Thanks, I have applied the patch in SVN and the changes should be
available in the next Phoenix daily build.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."

# ------------------------------------------------------------- #
def ask_mailing_list_support(email):

    if mention_platform_and_version() and include_sample_app():
        send_message(email)
    else:
        install_malware()
        erase_hard_drives()
# ------------------------------------------------------------- #

···

On 28 February 2013 21:44, Keith Smith wrote: