``get_int_input`` prompts the user to input a integer with the given prompt and title .. note:: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line \ a simple text prompt is used. :param str prompt: String to prompt with :param str tit
(prompt, title)
| 1164 | |
| 1165 | |
| 1166 | def get_int_input(prompt, title): |
| 1167 | """ |
| 1168 | ``get_int_input`` prompts the user to input a integer with the given prompt and title |
| 1169 | |
| 1170 | .. note:: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line \ |
| 1171 | a simple text prompt is used. |
| 1172 | |
| 1173 | :param str prompt: String to prompt with |
| 1174 | :param str title: Title of the window when executed in the UI |
| 1175 | :rtype: integer value input by the user |
| 1176 | :Example: |
| 1177 | >>> get_int_input("PROMPT>", "getinfo") |
| 1178 | PROMPT> 10 |
| 1179 | 10 |
| 1180 | """ |
| 1181 | value = ctypes.c_longlong() |
| 1182 | if not core.BNGetIntegerInput(value, prompt, title): |
| 1183 | return None |
| 1184 | return value.value |
| 1185 | |
| 1186 | |
| 1187 | def get_address_input(prompt, title): |