paid_value = self.paidinput.GetValue().strip()

I have this line of code to take a number from the paidinput field, but i need the value as an integer, how would i go about this?

Make it an integer with int()

>>> paid_value = '55'
>>> type(paid_value)
<type 'str'>
>>> paid_value = int(paid_value)
>>> type(paid_value)
<type 'int'>
>>> paid_value ** 5
3025
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.