Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: FloatSpin.py


Chronological Thread 
  • From: "James Bigler" < >
  • To:
  • Subject: [Manta] Re: FloatSpin.py
  • Date: Thu, 8 Jan 2009 10:08:33 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=oLqpiKtP3C08onuPG7YOZ09GmCJNaXXxC4/+M4lQBKSCa5W/oad9ygPz9Sx1Yx2blD uf6Ay12f9JPFb/1OTBh8QrfvNurSZWdLNtR5vZ/ds4a9dJwckb3qhrMQJ4MA5rvKHoWz LGyWo0ksjfa22tl+j+hVyWeT98aZqiV8m7rWw=

Those are designed to pass the events up to the parent, but I'm not sure that parent widget should even care.  Instead of nuking the code, how about you clamp the value to a valid int range to avoid the overflows.

James

On Thu, Jan 8, 2009 at 6:11 AM, Carson Brownlee < "> > wrote:
in SwingInterface/FloatSpin.py:DoSendEvent()   what is the purpose of event.SetInt() and eventOut.SetPosition() ?  Is it some sort of compatability with the int based spincontrol?
The problem is that floating point values outside of the int range produce overflow errors and commenting out these two calls doesn't seem to brake anything, at least for me.
thanks,
Carson




  • [Manta] FloatSpin.py, Carson Brownlee, 01/08/2009
    • [Manta] Re: FloatSpin.py, James Bigler, 01/08/2009

Archive powered by MHonArc 2.6.16.

Top of page