code: def get_pasteas_parameters_from_user(self, obj):
          
  
          dlg = PasteAsDialog(None, -1, obj)
          dlg_choice = dlg.ShowModal()
  
          if dlg_choice != wx.ID_OK:
              dlg.Destroy()
              return None
  
          parameters = {}
          parameters.update(dlg.parameters)
          dlg.Destroy()
  
          return parameters
docs: Opens a PasteAsDialog and returns parameters dict