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

How do you actually use PyPNGImage? #369

Open
Pshemas opened this issue Aug 8, 2024 · 0 comments
Open

How do you actually use PyPNGImage? #369

Pshemas opened this issue Aug 8, 2024 · 0 comments

Comments

@Pshemas
Copy link

Pshemas commented Aug 8, 2024

Sorry for a noob question, but I'm having trouble using this lib.
By default if I do:

somedata = "...curses..."
another_attempt = qrcode.make(somedata)

I get 'qrcode.image.pure.PyPNGImage object. And I fail to do anything with it. If I try to use it as a TkInter labe I get an error:

image "<qrcode.image.pure.PyPNGImage object at 0x7f5c6a78f100>" doesn't exist

If I try to convert with someimg = tk.PhotoImage(data=another_attempt) I get an error too.
So my question is how do you actually make types match and make result useful? Is it doable without saving?

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