Just take a look at Sublime Text 2 to expand it. I pulled out the console using CTRL 'and tried to do:
>>> x = window.new_file() >>> x <sublime.View object at 0x00000000032EBA70> >>> x.insert(0,"Hello")
A new window does open, but my insert doesn't seem to work:
Traceback (most recent call last): File "<string>", line 1, in <module> Boost.Python.ArgumentError: Python argument types in View.insert(View, int, str) did not match C++ signature: insert(class SP<class TextBufferView>, class SP<class Edit>, __int64, class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)
Any idea what I'm doing wrong?
source share