integ
This commit is contained in:
@@ -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
17
test_ncurse.py
Normal 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()
|
||||
Reference in New Issue
Block a user