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

Text API example yields and error #20

Closed
francesco-vannini opened this issue Apr 2, 2016 · 7 comments
Closed

Text API example yields and error #20

francesco-vannini opened this issue Apr 2, 2016 · 7 comments

Comments

@francesco-vannini
Copy link
Contributor

Running the following:
from papirus import PapirusText text = PapirusText() text.write("hello world")

Will return:
Traceback (most recent call last): File "text.py", line 3, in <module> text = PapirusText() TypeError: __init__() takes no arguments (1 given)

@shawaj
Copy link
Member

shawaj commented Apr 2, 2016

What about if you run papirus-write "hello world" from command line?

@francesco-vannini
Copy link
Contributor Author

The issue for text.py seems to revolve around inheritance. I have rewritten the file and made corrections.

text.zip

@shawaj
Copy link
Member

shawaj commented Apr 11, 2016

have updated the repo for this now. should be working better? can you verify with a new clone?

@ukscone
Copy link

ukscone commented May 31, 2016

the positioning of text is currently not working/implimented although you can mostly get an idea by looking in the demo directory in the repaper/gratis github entry

@ukscone
Copy link

ukscone commented May 31, 2016

added a quick hack to get text positioning working in text.py. it's in my fork of your github

@BenScarb
Copy link
Contributor

I've put together some positional text stuff, in pull request #68

@francesco-vannini
Copy link
Contributor Author

OK, I will close the issue as indeed the code was lacking the functionality and we are looking at implementing it with some refactoring. Thanks @BenScarb for your efforts so far.

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

4 participants