title: python curses textbox widget
body: <pre><code>#! /usr/bin/python
  
  import curses
  import curses.textpad as textpad
  
  try:
      mainwindow = curses.initscr()
      textpad.Textbox(mainwindow).edit()
  finally:
      curses.endwin()
  </code></pre>
  
  <p>the problem is that I type one character,but two characters display on screen.</p>