Skip to content

dnd: Add Python API for DataTransfer and ported the example - #11686

Merged
tronical merged 2 commits into
masterfrom
simon/dnd-python
May 15, 2026
Merged

dnd: Add Python API for DataTransfer and ported the example#11686
tronical merged 2 commits into
masterfrom
simon/dnd-python

Conversation

@tronical

Copy link
Copy Markdown
Member

The Python API uses a property for user_data instead of setter and getter. For image and plain text, the function style syntax remains for now.

This also fixes a bug with the reference docs not showing the right types due to a pdoc reference issue.

tronical added 2 commits May 13, 2026 11:42
The Python API exposes `user_data`, `has_plaintext`, and `has_image` as
properties. For the set/fetch operations on image and plain text, the
function style syntax remains for now.

This also fixes a bug with the reference docs not showing the right
types due to a pdoc reference issue.
…ds to user_data

Implement the GC protocol to make cycles collectible.
@tronical
tronical merged commit 06be23f into master May 15, 2026
137 of 145 checks passed
@tronical
tronical deleted the simon/dnd-python branch May 15, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants