code: def new_module(self, basedir):
          
          title = _("New module")
          filters = _("Python scripts")+" (*.py *.pyw *.ipy)"
  
          def create_func(fname):
              self.sig_create_module.emit(fname)
  
          self.create_new_file(basedir, title, filters, create_func)
docs: New module