This commit is contained in:
cclecle
2022-08-09 02:32:42 +02:00
parent 57d942f914
commit a7e0909b49
2 changed files with 20 additions and 5 deletions

View File

@@ -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

17
test_ncurse.py Normal file
View File

@@ -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()