Sibylle Koczian wrote:
> Am Mittwoch, 13. August 2008 15:54:49 schrieb Paul McNett:
>> Nate Lowrie wrote:
>>> On Wed, Aug 13, 2008 at 7:42 AM, Paul McNett <[EMAIL PROTECTED]> wrote:
>>>> No it looks like Dabo's recognizing a Decimal field where it should, but
>>>> Increment is float. But Decimals can't interact with floats directly -
>>>> the float needs to be converted to a Decimal or an Int first. We need to
>>>> fix this in Dabo. Can you register yourself and add a ticket at
>>>> https://trac.dabodev.com, showing this traceback?
>>> Just for discussion, it looks like he is using the dSpinner class and
>>> not the new dSpinnerX class. So, I have two questions: Are we
>>> dropping support for the regular dSpinner in the next release? Is the
>>> DaboDemo error from dSpinner or dSpinnerX?
>> dSpinnerX was integrated months ago, and the old dSpinner is no more.
>>
>
> And the thing that's currently called "dSpinner" is in fact a component that
> was formerly called dSpinnerX, right? Because I don't see the
> name "dSpinnerX" in the ClassDesigner or in the traceback.
Correct.
> Will add the ticket.
In the meantime, just set the Increment using Decimal instead of float:
import decimal.Decimal as Decimal
spinner.Increment = Decimal("1.5")
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]