[英]How to change cursor position of wxRichTextCtrl in event handler?
[英]how to change the position of the cursor in python 3
在Windows 10上,您可以使用控制台虚拟终端序列中的 ANSI转义序列。
在使用它们之前,您需要subprocess.run('', shell=True)
(在Python 3.5之前,使用subprocess.call
)。 这些序列使您可以找到所需的内容。
警告:同样是原版Microsoft, 显示和擦除行中的擦除文档部分有问题。 参数1和2相反。
这应该工作(虽然,实际输入密码似乎破坏了布局):
import subprocess
subprocess.run('', shell=True)
print(' enter password : \0337', end='')
print('\n\n\t2 attempts remaining .\0338', end='')
x = input()
用Python 3使用;
print("...", end="")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.