Try changing the default parameters of the function integerbox
when you call it. Specifically, the one you'll want to change to allow negative numbers is lowerbound
. Here is the full definition of integerbox
so you can see all the parameters.
integerbox(msg='', title=' ', default='', lowerbound=0, upperbound=99, image=None, root=None, **invalidKeywordArguments)
The minimum value for an integer on any platform can be accessed through the following method:
import sys
a=eg.integerbox(msg='enter a', lowerbound = -sys.maxint - 1)
The upperbound for an int can be accessed through sys.maxint
.