Comments (1)
Key detail: for PySide6, it looks like QSvgWidget
must be imported from the QtSvgWidgets
top-level package instead of from QtSvg
:
Enthought Deployment Manager -- https://www.enthought.com
Python 3.8.12 |Enthought, Inc. (x86_64)| (default, Sep 27 2021, 11:51:02)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PySide6.QtSvg # package is still present
>>> from PySide6.QtSvg import QSvgWidget # but doesn't contain QSvgWidget
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'QSvgWidget' from 'PySide6.QtSvg' (/Users/mdickinson/.edm/envs/canopy-data-ipython/lib/python3.8/site-packages/PySide6/QtSvg.cpython-38-darwin.so)
>>> from PySide6.QtSvgWidgets import QSvgWidget # correct import location
>>> QSvgWidget
<class 'PySide6.QtSvgWidgets.QSvgWidget'>
from pyface.
Related Issues (20)
- Standardize toolkit checks
- We should handle TraitsUI helpers better in `GUITestAssistant`
- Bug report: SystemMetrics error on headless macos
- Remove `EDM_ROOT_DIRECTORY` from CI
- Error in the Pyface 8.0.0 release notes
- Bug report: NotImplementedError wx test failure with 8.0.0 HOT 1
- Drop support for PyQt5
- TaskWindows should have clear API for adding a dock pane in a location
- Bug report: test failures on s390x HOT 2
- Bug report: pyqt6 test failure HOT 1
- Bug report: AttributeError: type object 'QFont' has no attribute 'Decorative' HOT 3
- Bug report: 8.0.0 pyqt6 test_add_to_menu fails HOT 1
- Toolbars are not created in pyface 8.0 HOT 1
- Bug report: (some) tests should be skipped when ETS_TOOLKIT=qt4 HOT 1
- Bug report: Include all license files into the wheel
- Bug report: image_volume.py time_stamp breaks reproducible builds HOT 5
- Bug report: test failures with PyQt5 HOT 4
- Add WxPython to EDM Python 3.8 test suites
- Bug report: Tests halt on Rocky Linux 8 using PySide6-6.7.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyface.