[wingide-users] wing pylint integration
Wingware Support
support at wingware.com
Mon Jul 23 08:55:10 MDT 2007
David Yoakley wrote:
> Does anyone know how to execute a wing message on file open? I think I
> would like to run pylint every time I open a file.
You can connect to the 'document-open' signal in the CAPIApplication class
in wingapi.py. See the scripting chapter of the manual. It would look
something like this:
def _myfunc(doc):
# do something here
import wingapi
wingapi.gApplication.connect('document-open', _myfunc)
The 'doc' sent is is a CAPIDocument instance.
HTH,
--
Stephan Deibel
Wingware | Python IDE
Advancing Software Development
www.wingware.com
More information about the wingide-users
mailing list