code: def OnPageSetup(self, event):
          
  
          print_data = self.main_window.print_data
          new_print_data = \
              self.main_window.interfaces.get_print_setup(print_data)
          self.main_window.print_data = new_print_data
docs: Page setup handler for printing framework