def METHOD_NAME(self, app):
    n = self["name"]
    if not n or n == "default":
        n = "SimpleDrill"
    simpleDrill = SimpleDrill(n)
    blocks = simpleDrill.calc(
        self["x"],
        self["y"],
        self["depth"],
        self["peck"],
        self["dwell"],
        self["drillFeed"],
        self["safeZforG0"],
    )
    active = app.activeBlock()
    if active == 0:
        active = 1
    app.gcode.insBlocks(active, blocks, _("Create Simple Drill"))
    app.refresh()
    app.setStatus(_("Generated: Simple Drill"))