Erster Commit: nativer Linux-Port aus macOS-Bytecode
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>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
import sys,os
|
||||
sys.path.append("..")
|
||||
import pyfpdf
|
||||
|
||||
customer = {'name':'John Doe','tax_id':'00-0000000-0','vat':True}
|
||||
items = [
|
||||
{'qty':12,'description':'Eggs','price':1.00},
|
||||
{'qty':20,'description':'Spam','price':3.00},
|
||||
{'qty':1,'description':'Varios','price':0.50},
|
||||
]
|
||||
|
||||
pdf = pyfpdf.FPDF()
|
||||
pdf.add_page();
|
||||
pdf.set_font('Arial','B',16);
|
||||
for line in open("simple-csv-invoice.txt").readlines():
|
||||
print line
|
||||
args = eval(line.strip())
|
||||
pdf.text(x=args[0],y=args[1],txt=str(args[2]).decode('latin1'));
|
||||
|
||||
pdf.output(r"./invoice.pdf","F")
|
||||
import sys
|
||||
if sys.platform.startswith("linux"):
|
||||
os.system("evince ./invoice.pdf")
|
||||
else:
|
||||
os.system("./invoice.pdf")
|
||||
Reference in New Issue
Block a user