--
---
You received this message because you are subscribed to the Google Groups "Skulpt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skulpt+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I think it is a do-able project, given that some parts of the Tk model are just thrown out. The idea of a root window does not make much sense in the context of a browser for example. But other stuff could be done. My guess is that it would be a layer on top of standard input elements and canvas drawing operations. I’m not likely to be the person who implements it as I just have too much other stuff on my plate, but I would be happy to accept a PR.
Brad
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Skulpt" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skulpt/eZRqlWIvmYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to skulpt+un...@googlegroups.com.
Yeah, Tkinter is based on Tk as in Tcl/Tk so it is using the underlying libraries from having Tk installed.
So, to me, a ‘port’ never made sense. However something that works like Tk would make some sense. I’m really curious about your use cases for this. If it is to do simple drawing, then why not use processing or something that is already working. If you want to make GUI’s with buttons and stuff in a fake window in a browser? Then making a Tk workalike that simple uses document.CreateElement(‘input’) behind the scenes makes a lot more sense than reimplementing Tk to the point where you are drawing your own buttons.
Brad
What I was trying to say was that I think your best option is going to be to implement the Tkinter API but use the tools you have in Javascript. This would let you run the Tkinter programs they have written but would work in the browser. I think that trying to reimplement all of Tkinter down to the level of its primitive drawing methods would take a really long time, and it seems a bit pointless as you already have buttons and labels and text input widgets, a canvas, etc that you can use.
Brad
To unsubscribe from this group and all its topics, send an email to skulpt+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.