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

Check for instance of QApplication before creating on in images util #350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hmaarrfk
Copy link
Contributor

python scripts/run_ui_css_edition.py
-- PROCESSING THEME: dark
-- GENERATING PALETTE IMAGE FOR: dark
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
INFO:qdarkstyle.utils.images:Creating palette image ...
INFO:qdarkstyle.utils.images:Base SVG: /home/mark/git/QDarkStyleSheet/qdarkstyle/svg/base_palette.svg
INFO:qdarkstyle.utils.images:To SVG: /home/mark/git/QDarkStyleSheet/docs/images/dark/palette.svg
INFO:qdarkstyle.utils.images:To PNG: /home/mark/git/QDarkStyleSheet/docs/images/dark/palette.png
-- GENERATING IMAGE FILES (.svg > .png) FOR: dark
Traceback (most recent call last):
  File "/home/mark/git/QDarkStyleSheet/scripts/../qdarkstyle/utils/__main__.py", line 96, in <module>
    sys.exit(main())
  File "/home/mark/git/QDarkStyleSheet/scripts/../qdarkstyle/utils/__main__.py", line 91, in main
    process_palette(palette=palette, compile_for=args.create)
  File "/home/mark/git/QDarkStyleSheet/qdarkstyle/utils/__init__.py", line 64, in process_palette
    create_images(palette=palette)
  File "/home/mark/git/QDarkStyleSheet/qdarkstyle/utils/images.py", line 150, in create_images
    _ = QApplication([])
RuntimeError: Please destroy the QApplication singleton before creating a new QApplication instance.

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

Successfully merging this pull request may close these issues.

1 participant