Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8044

Python • Re: Kivy (again sorry) on pi trixie without DeskTop Environment ?

$
0
0
as i also want learn Python GUI coding try KIVY

AND regarding your question here: with RPI3
install RPIOS desktop 64bit
OS: Debian GNU/Linux 13 (trixie) aarch64
Host: Raspberry Pi 3 Model B Rev 1.2
Kernel: Linux 6.12.62+rpt-rpi-v8
python -V
Python 3.13.5
mkdir kivy
cd kivy

python -m venv pyenv
source pyenv/bin/activate

python -m pip install "kivy[base]" kivy_examples

( or [full] instead [base] )

follow example kivy.org/doc/stable/tutorials/pong.html
nano main.py
nano pong.kv

python3 main.py

works ( slow ) with a warning
running xinput against an Xwayland server. See the xinput man page for details.
____________________________
check mem:
free -h
total used free shared buff/cache available
Mem: 905Mi 377Mi 174Mi 10Mi 424Mi 528Mi

python3 main.py

free -h
total used free shared buff/cache available
Mem: 905Mi 501Mi 68Mi 12Mi 408Mi 404Mi


____________________________
also check on:

pip install fpdf2
nano pdf.py

Code:

from fpdf import FPDFpdf = FPDF()pdf.add_page()pdf.set_font('helvetica', size=12)pdf.cell(text="hello world")pdf.output("hello_world.pdf")
creates a file.

____________________________

so theoretically you could still use RPI3
try install newest RPIOS TRIXIE ? even desktop ?

but if your app too big & swap on a uSD occurs, might be unusable slow.

Statistics: Posted by PiPlay — Thu Feb 26, 2026 4:30 am



Viewing all articles
Browse latest Browse all 8044

Trending Articles