parameters: (self)
docstring: Opens a print setup dialog and save print settings.
          @return: None
docstring_summary: Opens a print setup dialog and save print settings.
          @return: None
docstring_tokens: Opens a print setup dialog and save print settings . @return : None
function: def PageSetup(self):
          """Opens a print setup dialog and save print settings.
          @return: None
  
          """
          dlg_data = wx.PageSetupDialogData(self.print_data)
          dlg_data.SetPrintData(self.print_data)
      
          dlg_data.SetDefaultMinMargins(True)
          dlg_data.SetMarginTopLeft(self.margins[0])
          dlg_data.SetMarginBottomRight(self.margins[1])
  
          print_dlg = wx.PageSetupDialog(self.parent, dlg_data)
          if print_dlg.ShowModal() == wx.ID_OK:
              self.print_data = wx.PrintData(dlg_data.GetPrintData())
              self.print_data.SetPaperId(dlg_data.GetPaperId())
              self.margins = (dlg_data.GetMarginTopLeft(),
                              dlg_data.GetMarginBottomRight())
          print_dlg.Destroy()
function_tokens: def PageSetup ( self ) : dlg_data = wx . PageSetupDialogData ( self . print_data ) dlg_data . SetPrintData ( self . print_data ) dlg_data . SetDefaultMinMargins ( True ) dlg_data . SetMarginTopLeft ( self . margins [ 0 ] ) dlg_data . SetMarginBottomRight ( self . margins [ 1 ] ) print_dlg = wx . PageSetupDialog ( self . parent , dlg_data ) if print_dlg . ShowModal ( ) == wx . ID_OK : self . print_data = wx . PrintData ( dlg_data . GetPrintData ( ) ) self . print_data . SetPaperId ( dlg_data . GetPaperId ( ) ) self . margins = ( dlg_data . GetMarginTopLeft ( ) , dlg_data . GetMarginBottomRight ( ) ) print_dlg . Destroy ( )