def METHOD_NAME(self, event):
    self.setup()
    pdd = wx.PrintDialogData(self.printData)
    # set number of pages/copies
    pdd.SetToPage(1)
    printer = wx.Printer(pdd)
    printout = MapPrint(self.mapwin)
    if not printer.Print(self.mapframe, printout, True):
        GMessage(
            _(
                "There was a problem printing.\n"
                "Perhaps your current printer is not set correctly?"
            )
        )
    else:
        self.printData = wx.PrintData(printer.GetPrintDialogData().GetPrintData())
    printout.Destroy()