def askinteger(title, prompt, **kw):
 d = _QueryInteger(title, prompt, **kw)
 return d.result

def askinteger ( title , prompt , ** kw ) : d = _QueryInteger ( title , prompt , ** kw ) return d . result
get an integer from the user arguments: title -- the dialog title prompt -- the label text **kw -- see simpledialog class return value is an integer .