I've been needing this for some time now, and i couldn't find a way to do it. I have a python script that uses python's input()
function. And if you enter an argument inside of it, it writes something in front of the input, that means input("hi ")
will output hi:
in console, and after a space you can type in. But i don't want that, i want something that if you enter an argument it will pre-write something in the text.
something like this:
input("enter a name: ", "name")
> enter a name: name
^^^^
this is editable by user (can be deleted, modified, etc.)