Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'BalancedColumns' object has no attribute 'canv' #29

Open
fegamon opened this issue Jul 9, 2024 · 0 comments
Open

'BalancedColumns' object has no attribute 'canv' #29

fegamon opened this issue Jul 9, 2024 · 0 comments

Comments

@fegamon
Copy link

fegamon commented Jul 9, 2024

I have this code:

F = [
    Paragraph(
        f'<b>Any text:</b> {foo}', style),
    Paragraph(f'<b>Another text:</b> {bar}', style2)
]

col_styles = {
    'leftPadding': 0,
    'rightPadding': 0,
    'topPadding': 0,
    'bottomPadding': 0,
}

a = BalancedColumns(F, 2, **col_styles)
print(a.wrap(self.doc.width, self.doc.height))

And I got the error : AttributeError: 'BalancedColumns' object has no attribute 'canv'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant