|
|
|
|
# Run Python - pyTermTk on Wine32:
|
|
|
|
|
```bash
|
|
|
|
|
# cmd in the terminal
|
|
|
|
|
~/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-GE-Proton8-5-x86_64/bin/wine cmd
|
|
|
|
|
# cmd in a wine window
|
|
|
|
|
~/.var/app/net.lutris.Lutris/data/lutris//runners/wine/lutris-GE-Proton8-5-x86_64/bin/wine wineconsole
|
|
|
|
|
|
|
|
|
|
# Install python from https://www.python.org/downloads/windows/
|
|
|
|
|
# Copy the pyTermTk demo and TermTk folder in
|
|
|
|
|
# ~/.wine/drive_c/users/one/AppData/Local/Programs/Python/Python310-32
|
|
|
|
|
|
|
|
|
|
C:
|
|
|
|
|
cd C:\users\one\AppData\Local\Programs\Python\Python310-32
|
|
|
|
|
python.exe demo/demo.py
|
|
|
|
|
python.exe tests/test.input.win.py
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
alias wine='~/.var/app/net.lutris.Lutris/data/lutris/runners/wine/wine-10.16-staging-amd64-wow64-x86_64/bin/wine'
|
|
|
|
|
export WINEPREFIX="$(pwd)/wineprefix"
|
|
|
|
|
wine ConEmuSetup.230724.exe
|
|
|
|
|
wget https://www.python.org/ftp/python/3.14.0/python-3.14.0-amd64.exe
|
|
|
|
|
wine python-3.14.0-amd64.exe
|
|
|
|
|
wine 'C:\Program Files\ConEmu\ConEmu64.exe'
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# termios wrappers
|
|
|
|
|
- termiWin -> https://github.com/veeso/termiWin
|
|
|
|
|
|
|
|
|
|
# Competitors with MS-Win support
|
|
|
|
|
|
|
|
|
|
### Textual -> https://github.com/Textualize/textual
|
|
|
|
|
https://github.com/Textualize/textual/blob/main/src/textual/drivers/win32.py
|
|
|
|
|
|
|
|
|
|
### TheVTPyProject -> https://github.com/srccircumflex/TheVTPyProject
|
|
|
|
|
|
|
|
|
|
# Incompatible code (the one using termios):
|
|
|
|
|
- TermTk/TTkCore/TTkTerm/readinputlinux.py
|
|
|
|
|
- TermTk/TTkCore/TTkTerm/readinputlinux_thread.py
|
|
|
|
|
- TermTk/TTkCore/TTkTerm/term_unix.py
|