| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """An input pygame alternative for sublime text users.""" |
||
| 2 | |||
| 3 | from sublinput.ui import InputBoxScreen |
||
| 4 | import builtins |
||
|
|
|||
| 5 | |||
| 6 | |||
| 7 | def new_input(__prompt: str = '') -> str: |
||
| 8 | """A function that creates a new input box screen and return it's value.""" |
||
| 9 | with InputBoxScreen() as input_box: |
||
| 10 | return input_box(__prompt) |
||
| 11 | |||
| 12 | |||
| 13 | builtins.input = new_input |
||
| 14 |