code: def OnPrintPreview(self, event):
          
  
          print_area = self._get_print_area()
          print_data = self.main_window.print_data
  
          self.main_window.actions.print_preview(print_area, print_data)
docs: Print preview handler