[wxPython-users] Get a valur for make some calculates
Andrea
amarin at mr-service.it
Tue Apr 3 10:48:14 PDT 2007
On Tue, 2007-04-03 at 13:39 -0400, Mike Rooney wrote:
> All you need to do is cast these to ints, which can be done with the
> int() method. float() also exists for numbers with decimals. So:
>
> tot_local = int(self.local.GetValue())
> scontolocal_mr = int(self.scontolocal.GetValue())
>
> You could also be using the new properties to access the value, like
>
> tot_local = int(self.local.Value)
> scontolocal_mr = int(self.scontolocal.Value)
>
> which I personally prefer.
Thanks, this work very well for my need.
Bye Andrea
More information about the wxpython-users
mailing list