Beispiel #1
0
 def remove_item(self, index = None):
  item = self[index]
  screen_name = self[index]['screen_name']
  confirmation = wx.MessageDialog(parent=None, caption=_("Unblock"), message=_("Are you sure you wish to unblock %s?") % screen_name, style=wx.YES|wx.NO|wx.CANCEL|wx.ICON_QUESTION)
  confirmation.Raise()
  if confirmation.ShowModal() != wx.ID_YES:
   confirmation.Destroy()
   return output.speak(_("Canceled."), True)
  confirmation.Destroy()
  self.session.api_call('destroy_block', _("unblocking %s") % screen_name, screen_name=screen_name)
  Buffer.remove_item(self, index=index, announce=False)
Beispiel #2
0
 def remove_item(self, index=None):
     item = self[index]
     screen_name = self[index]['screen_name']
     confirmation = wx.MessageDialog(
         parent=None,
         caption=_("Unblock"),
         message=_("Are you sure you wish to unblock %s?") % screen_name,
         style=wx.YES | wx.NO | wx.CANCEL | wx.ICON_QUESTION)
     confirmation.Raise()
     if confirmation.ShowModal() != wx.ID_YES:
         confirmation.Destroy()
         return output.speak(_("Canceled."), True)
     confirmation.Destroy()
     self.session.api_call('destroy_block',
                           _("unblocking %s") % screen_name,
                           screen_name=screen_name)
     Buffer.remove_item(self, index=index, announce=False)
Beispiel #3
0
 def remove_item (self, index=None):
  self.session.interface.Unfollow()
  Buffer.remove_item(self, index=index, announce=False)
Beispiel #4
0
 def remove_item(self, index=None):
     self.session.interface.Unfollow()
     Buffer.remove_item(self, index=index, announce=False)