def Printer_Setup2(self, event=None):
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>data = wx.PageSetupDialogData()<EOL>data.SetPrintData(self.printerData)<EOL><DEDENT>else:<EOL><INDENT>data = wx.PageSetupDialogData()<EOL><DEDENT>data.SetMarginTopLeft( (<NUM_LIT:15>, <NUM_LIT:15>) )<EOL>data.SetMarginBottomRight( (<NUM_LIT:15>, <NUM_LIT:15>) )<EOL>dlg = wx.PageSetupDialog(self, data)<EOL>if dlg.ShowModal() == wx.ID_OK:<EOL><INDENT>data = dlg.GetPageSetupData()<EOL>tl = data.GetMarginTopLeft()<EOL>br = data.GetMarginBottomRight()<EOL><DEDENT>self.printerData = wx.PrintData(data.GetPrintData())<EOL>dlg.Destroy()<EOL>
set up figure for printing.  Using the standard wx Printer
        Setup Dialog.