Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/ scipy/PortAudio) kommen nativ aus Debian stretch. Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per .gitignore ausgeschlossen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
920 B
Python
40 lines
920 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"Basic example to test PyFPDF"
|
|
|
|
#PyFPDF-cover-test:format=PDF
|
|
#PyFPDF-cover-test:fn=simple.pdf
|
|
#PyFPDF-cover-test:hash=1fd821a42cb5029a51727a6107b623ec
|
|
#PyFPDF-cover-test:pil=yes
|
|
#PyFPDF-cover-test:res=../tutorial/logo.png
|
|
#PyFPDF-cover-test:res=flower2.jpg
|
|
#PyFPDF-cover-test:res=lena.gif
|
|
|
|
import common # test utilities
|
|
from fpdf import FPDF
|
|
|
|
import sys
|
|
|
|
def dotest(outputname, nostamp):
|
|
pdf = FPDF()
|
|
if nostamp:
|
|
pdf._putinfo = lambda: common.test_putinfo(pdf)
|
|
|
|
pdf.add_page()
|
|
pdf.set_font('Arial', '', 14)
|
|
pdf.ln(10)
|
|
if nostamp:
|
|
data = "TEST-TEST-TEST"
|
|
else:
|
|
data = sys.version
|
|
|
|
pdf.write(5, 'hello world %s' % data)
|
|
pdf.image("../tutorial/logo.png", 50, 50)
|
|
pdf.image("flower2.jpg", 100, 50)
|
|
pdf.image("lena.gif", 50, 75)
|
|
pdf.output(outputname, 'F')
|
|
|
|
if __name__ == "__main__":
|
|
common.testmain(__file__, dotest)
|
|
|