Description
Create tutorials or specialized API to interact with common Python types:
- Numpy The project has support already for NumPy arrays, so one could generate a QMatrix from a 2D-numpy array, for example:
num_mat = numpy.eye(4) num_mat.shape = 16 unit = QtGui.QMatrix4x4(num_mat) assert unit == QtGui.QMatrix4x4()
- Pandas a new example using Pandas was included in the repository https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/external/pandas and also an live example was shared during the QtWS2019 https://www.youtube.com/watch?v=214TWASZVgA
- pathlib compatibility: There is currently an effort to accept Path objects (from Python), everywhere we accept QUrl, QFileName, etc https://bugreports.qt.io/browse/PYSIDE-1499 (in progress)
There are currently more ideas to provide support for other types from different modules, but that will be followed up on a different EPIC.
Attachments
Issue Links
- relates to
-
PYSIDE-1499 Migrate to pathlib.Path and Support __fspath__ in PySide
- Closed
- mentioned in
-
Page Loading...