Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/u/l/ulipad-HEAD/mixins/mSyntaxCheck.py   ulipad(Download)
def OnPythonCheck(win, event):
    import SyntaxCheck
    SyntaxCheck.Check(win, win.document)
Mixin.setMixin('mainframe', 'OnPythonCheck', OnPythonCheck)
 
def aftersavefile(win, filename):
    if win.edittype == 'edit' and win.languagename == 'python' and win.pref.auto_py_check:
        import SyntaxCheck
        wx.CallAfter(SyntaxCheck.Check, win.mainframe, win)
Mixin.setPlugin('editor', 'aftersavefile', aftersavefile, Mixin.LOW)

src/u/l/ulipad-HEAD/mixins/Import.py   ulipad(Download)
def OnPythonCheck(win, event):
    import SyntaxCheck
    SyntaxCheck.Check(win, win.document)
Mixin.setMixin('mainframe', 'OnPythonCheck', OnPythonCheck)
 
def aftersavefile(win, filename):
    if win.edittype == 'edit' and win.languagename == 'python' and win.pref.auto_py_check:
        import SyntaxCheck
        wx.CallAfter(SyntaxCheck.Check, win.mainframe, win)
Mixin.setPlugin('editor', 'aftersavefile', aftersavefile, Mixin.LOW)