Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1110

Embrace Python types and modules in PySide

    XMLWordPrintable

Details

    • Epic
    • Resolution: Fixed
    • P2: Important
    • 6.2.9
    • None
    • PySide
    • None
    • Adopt Python types in Pyside

    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()
        

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              ablasche Alex Blasche
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes