diff --git a/launch.bat b/launch.bat index d3aa744..af79b4a 100644 --- a/launch.bat +++ b/launch.bat @@ -172,13 +172,11 @@ if ERRORLEVEL 1 goto ERR_GENE_PYTHON_VENV call %PYTHON_VENV_PATH%\Scripts\activate.bat >NUL 2>NUL if ERRORLEVEL 1 goto ERR_ENABLE_PYTHON_VENV -python -m pip install --upgrade requests -if ERRORLEVEL 1 goto ERR_INSTALL_PYTHON_VENV -python -m pip install --upgrade libtorrent -if ERRORLEVEL 1 goto ERR_INSTALL_PYTHON_VENV -python -m pip install --upgrade upnpclient +python -m pip install --upgrade pip +python -m pip install --upgrade requests libtorrent upnpclient if ERRORLEVEL 1 goto ERR_INSTALL_PYTHON_VENV + SET PATH=%path%;%~dp0\Embedded\libtorrent echo [INFO] Done diff --git a/test_ncurse.py b/test_ncurse.py new file mode 100644 index 0000000..47442a3 --- /dev/null +++ b/test_ncurse.py @@ -0,0 +1,17 @@ +import curses +from curses.textpad import Textbox, rectangle + +def main(stdscr): + stdscr.addstr(0, 0, "Enter IM message: (hit Ctrl-G to send)") + + editwin = curses.newwin(5,30, 2,1) + rectangle(stdscr, 1,0, 1+5+1, 1+30+1) + stdscr.refresh() + + box = Textbox(editwin) + + # Let the user edit until Ctrl-G is struck. + box.edit() + + # Get resulting contents + message = box.gather() \ No newline at end of file