aboutsummaryrefslogtreecommitdiffstats
path: root/examples/external/networkx/main.py
Commit message (Collapse)AuthorAgeFilesLines
* type hints: Fix some typing bugs for mypy (forgiveness)Friedemann Kleint2024-09-181-10/+10
| | | | | | | | | | | | | The new enums still support old syntax by the forgiveness mode. Nevertheless, when using mypy to check files, strict correctness is enforced. We correct a large number of forgiveness-induced errors, but there is still a whole lot of other complaints to fix. Task-number: PYSIDE-2846 Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* A networkx graph viewer exampleSacha Schutz2022-10-141-0/+346
Display a networkx graph into a QGraphicsView. The user can move nodes and change the graph's layout with nodes positions animation. Pick-to: 6.4 Task-number: PYSIDE-841 Change-Id: I58bd6585f93caaf678b9961adae00c099c974d29 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>