parameters: (self)
docstring: Brings up the page setup dialog
docstring_summary: Brings up the page setup dialog
docstring_tokens: Brings up the page setup dialog
function: def PageSetup(self):
          """Brings up the page setup dialog"""
          data = self.pageSetupData
          data.SetPrintData(self.print_data)
          dlg = wx.PageSetupDialog(self.parent, data)
          try:
              if dlg.ShowModal() == wx.ID_OK:
                  data = dlg.GetPageSetupData()  # returns wx.PageSetupDialogData
                  # updates page parameters from dialog
                  self.pageSetupData.SetMarginBottomRight(
                      data.GetMarginBottomRight())
                  self.pageSetupData.SetMarginTopLeft(data.GetMarginTopLeft())
                  self.pageSetupData.SetPrintData(data.GetPrintData())
                  self._print_data = wx.PrintData(
                      data.GetPrintData())  # updates print_data
          finally:
              dlg.Destroy()
function_tokens: def PageSetup ( self ) : data = self . pageSetupData data . SetPrintData ( self . print_data ) dlg = wx . PageSetupDialog ( self . parent , data ) try : if dlg . ShowModal ( ) == wx . ID_OK : data = dlg . GetPageSetupData ( ) # returns wx.PageSetupDialogData # updates page parameters from dialog self . pageSetupData . SetMarginBottomRight ( data . GetMarginBottomRight ( ) ) self . pageSetupData . SetMarginTopLeft ( data . GetMarginTopLeft ( ) ) self . pageSetupData . SetPrintData ( data . GetPrintData ( ) ) self . _print_data = wx . PrintData ( data . GetPrintData ( ) ) # updates print_data finally : dlg . Destroy ( )