import readline, curses def foobar(stdscr): winmain = curses.newwin(50,50,50,50) winmain.redrawwin() stdscr.refresh() curses.wrapper(foobar)