def importPaste(self):
        """
        Hack for paste to import a level.
        """
        clipFilename = mcplatform.askOpenFile(title='Choose a schematic or level...', schematics=True)
        if clipFilename:
            try:
                self.loadLevel(pymclevel.fromFile(clipFilename, readonly=True))
            except Exception:
                alert("Failed to load file %s" % clipFilename)
                self.brushMode = "Fill"
                return

        Hack for paste to import a level.
        
editortools/brush.py