Sublime Forum

Embed Sublime as a widget in a Python application

#1

Hi, I’m looking to use the Sublime View class as a widget in a Python application.

I’ve found the API documentation here: https://www.sublimetext.com/docs/2/api_reference.html
And in the Sublime 2 folder, the archive which looks like it contains the Sublime API (python26.zip)

How do I get started? I unpacked the archive and put it into a Python module, but I still can’t import the base sublime module.

I have also found this question on StackOverflow, which shows others doing what I need to be able to do.
http://stackoverflow.com/questions/16035385/sublime-text-creating-new-view

Thanks for any tips.
Phil

0 Likes

#2

Project I’ve created recently, I call it pyblime, hope it helps!

0 Likes