TypeError
joonas
keisari_ at hotmail.com
Thu Oct 26 14:04:48 EDT 2000
I would like to get a number button function (or class or whatsoever)
and then make mathematical things like subtract with it.
Joonas.
Trent Mick wrote:
>
> On Thu, Oct 26, 2000 at 07:47:34PM +0300, joonas wrote:
> > I used the "print type(first)" method and it printed
> >
> > "<type 'Button'>"
> >
> > but when i wrote used "print first" it gave me
> >
> > "100"
> >
>
> "100" is the result of running your BUtton's __str__() method.
>
> > So. How can i make first substractable.
>
> Well, are you sure you want to subtract Buttons? I don't know what it means
> to do that.
>
> Trent
>
> --
> Trent Mick
> TrentM at ActiveState.com
More information about the Python-list
mailing list