The dialog accepts also function names, like "recvfrom":
Figure out the function address of some random location:Code:Python>print("Address: " + hex(idaapi.askaddr(0, "Enter target address"))) Address: 0x8a6f51c
Code:Python>print hex(idaapi.get_func(0x080D53A3).startEA) 0x80d5330 Python>print idaapi.get_func(0x123) None