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

TypeError: _elementWidth() takes exactly 4 arguments (3 given) #2

Open
maryjis opened this issue Jan 25, 2018 · 0 comments
Open

TypeError: _elementWidth() takes exactly 4 arguments (3 given) #2

maryjis opened this issue Jan 25, 2018 · 0 comments

Comments

@maryjis
Copy link

maryjis commented Jan 25, 2018

Hello. I use method wrapOn(canvas, width, height) and get such exeption in finction _elementWidth(self, v, s, cellcoord):

ew = self._elementWidth(e,s)

File "D:/DocsFromNotebook/Clinic Work/knowledge_base/branches/clinicProject\audit\spreadsheettable.py", line 272, in _elementWidth
TypeError: _elementWidth() takes exactly 4 arguments (3 given)
[25/Jan/2018 11:34:27] "POST /audit/convertPDF/ HTTP/1.1" 500 147430
File "D:/DocsFromNotebook/Clinic


 def _elementWidth(self, v, s, cellcoord):
        if isinstance(v,(list,tuple)):
            w = 0
            for e in v:
                ew = self._elementWidth(e,s)
                if ew is None: return None
                w = max(w,ew)
            return w
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