Posts by Lúcia Moita • 21 points
3 posts
-
0
votes1
answer69
viewsA: How to use canvas and Simpledoctemplate to each other? (reportlab)
Let’s not combine the Canvas method with Simpledoctemplate, it doesn’t make sense. After several searches what ententi is that Canvas is great for generating text, simpler documents and to initially…
-
-1
votes1
answer69
viewsQ: How to use canvas and Simpledoctemplate to each other? (reportlab)
I’m doing the exporting of reports through the library reportlab. To insert the text I used the canvas module, and wrote this code that works well. from reportlab.pdfgen import canvas pdf =…
-
2
votes4
answers350
viewsQ: How to add values from a dictionary with arrays by the Python key?
I have the following dictionary: { 'tvmv': [121, 250, 48, 45, 54, 120, 115, 138, 60, 30, 274], 'avic': [358, 60, 40], 'hotels_resorts': [60, 31, 45, 50, 300, 165, 40, 46], 'avani': [70, 40],…