class SampleCommand(sublimeplugin.Plugin): def onModified(self, view): """ Run on modified """ print "Modified" lines = view.substr(sublime.Region(0, view.size())).split("\n") self.mock = MockFunc("test_func", lines=lines) self.mock.play() def onLoad(self, view): """ Run on Load """ print "Load" self.mock = MockFunc("test_func.py", "test_func")
def onLoad(self, view): """ Run on Load """ print "Load" self.mock = MockFunc("test_func.py", "test_func")
def onModified(self, view): """ Run on modified """ print "Modified" lines = view.substr(sublime.Region(0, view.size())).split("\n") self.mock = MockFunc("test_func", lines=lines) self.mock.play()