0
아래와 같이 입력 상자를 만들려고합니다. 이런 이유로 코드 아래에 글을 썼지 만 enter
키를 누를 때마다 사용자 입력 상자에서 Enter 키를 누를 때마다 암호 입력 상자로 이동합니다. 하지만, 입력 상자를 키를 입력하는 것이 현명하게 할 수있는 방법을 찾지 못했습니다. 어떻게해야합니까?sessible 사용자 입력 상자에 입력
import curses
import curses.textpad
stdscr = curses.initscr()
curses.noecho()
curses.cbreak()
stdscr.keypad(1)
stdscr.clear()
stdscr.refresh()
win = curses.newwin(5, 20, 5, 10)
tb = curses.textpad.Textbox(win)
text = tb.edit()
visualization :
|-----------------------------|
| |
| |------| | // input box for taking username
| |------| |
| |
|-----------------------------|