code: def _get_button_label(self):
          
  
          dlg = wx.TextEntryDialog(self, _('Button label:'))
  
          if dlg.ShowModal() == wx.ID_OK:
              label = dlg.GetValue()
          else:
              label = ""
  
          dlg.Destroy()
  
          return label
docs: Gets Button label from user and returns string