'Open a module in an editor window when double clicked.'

def OnDoubleClick(self):

    if (os.path.normcase(self.file[(-3):]) != '.py'):
        return
    if (not os.path.exists(self.file)):
        return
    pyshell.flist.open(self.file)
