Sublime Forum

Opening a graphics window

#1

Has anyone got some sample code which opens a window and draws graphics into it from a plugin?
I was able to get tk and turtle to run, and they would open a window. But the window was empty and sublime crashes shortly afterwards.
It looks like turtle is built on top of the tk library, so no surprise that they both have the same symptoms.

Maybe I need to use a native window instead of trying to work with a python library?
I also had a bit of trouble with those libraries expecting to have argv initialized with the script name in the first element. Maybe when I faked that it was wrong.

0 Likes