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

WIP: Added ability to export chain keys #3267

Closed

Conversation

mitchellolsthoorn
Copy link
Member

Needed for #3239, where it is used to export the keys to an android client

Dependencies used:
python-qrcode

from PyQt5 import QtGui
from PyQt5.QtWidgets import QWidget, QLabel, QFileDialog
from PIL.ImageQt import ImageQt
import qrcode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an idea, we can make this qrcode import conditional, something like:

try:
    import qrcode
    has_qr = True
except ImportError:
    has_qr = False

And show an error if has_qr is False?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that is probably better, so it causes less dependency errors. Do you have an example how I can call an error widget?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitchellolsthoorn
Copy link
Member Author

@devos50, I updated the code to test if the module is present and also included an error for when the keys are missing or are still being created

@mitchellolsthoorn
Copy link
Member Author

This PR has become obsolete and is replaced by PR #3358

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

Successfully merging this pull request may close these issues.

3 participants