- def OnPrintSetup(self, event):
- data = wx.PrintDialogData(self.printData)
- printerDialog = wx.PrintDialog(self, data)
- #printerDialog.GetPrintDialogData().SetSetupDialog(True)
- printerDialog.ShowModal();
+
+ def OnPageSetup(self, evt):
+ psdd = wx.PageSetupDialogData(self.printData)
+ psdd.CalculatePaperSizeFromId()
+ dlg = wx.PageSetupDialog(self, psdd)
+ dlg.ShowModal()