mapeditor/tiled

Modernize Python bindings

Open

#2,190 建立於 2019年8月28日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)C++ (1,708 fork)batch import
help wanted

倉庫指標

Star
 (10,413 star)
PR 合併指標
 (平均合併 14天 4小時) (30 天內合併 17 個 PR)

描述

The current Python plugin relies on a large amount of generated code based on the somewhat hard to maintain and always incomplete tiledbinding.py and qtbinding.py.

I've recently learned about pybind11 (see also this blog post), which seems like a much nicer way of binding the classes to Python. The bindings are defined with similar verbosity, but directly in C++ which makes it easier to keep up-to-date.

In addition, pybind11 provides a more convenient way of interfacing with an embedded Python interpreter than using the Python API directly.

貢獻者指南