1 | """An input pygame alternative for sublime text users.""" |
||
2 | |||
3 | from sublinput.ui import InputBoxScreen |
||
4 | import builtins |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
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 |