denosaurs / deno_python

🐍 Python interpreter bindings for Deno and Bun.
https://deno.land/x/python
MIT License
684 stars 20 forks source link

tkinter can be used with deno_python ? #4

Closed elycheikhsmail closed 2 years ago

DjDeveloperr commented 2 years ago

I was able to open a simple window using tkinter, however it may not be very usable considering we do not support callbacks, which are crucial for events, etc. Maybe after FFI supports callbacks https://github.com/denoland/deno/pull/13162 we can try adding support for that in this module.

image

elycheikhsmail commented 2 years ago

@DjDeveloperr thank you

elycheikhsmail commented 2 years ago

I think when ffi callback supported in deno it will be poosible to use tkinter in deno wihout deno_python

DjDeveloperr commented 2 years ago

Yes it would be possible, Tk has C API that Deno FFI can consume, but of course it'll need callback support to do anything useful with it.