def inputbox(text, x, y, w, h):
 from plasma.lib.ui.inlineed import InlineEd
 ed = InlineEd(0, 0, 0, text, 0, [])
 ed.screen = curses.newwin(h, w, y, x)
 ret = ed.start_view(ed.screen)
 if (not ret):
  return ''
 return ed.text

def inputbox ( text , x , y , w , h ) : from plasma . lib . ui . inlineed import InlineEd ed = InlineEd ( 0 , 0 , 0 , text , 0 , [ ] ) ed . screen = curses . newwin ( h , w , y , x ) ret = ed . start_view ( ed . screen ) if ( not ret ) : return '' return ed . text
it creates a surface for an inline editor .