comparison frontends/src/wix/main_window.py @ 391:c34fd9d6242e

spelling
author Goffi <goffi@goffi.org>
date Thu, 29 Sep 2011 14:59:14 +0200
parents 0806a65a5fa9
children 10b4f577d0c0
comparison
equal deleted inserted replaced
390:8e87af2e2d1f 391:c34fd9d6242e
235 235
236 def askConfirmation(self, type, id, data): 236 def askConfirmation(self, type, id, data):
237 #TODO: refactor this in QuickApp 237 #TODO: refactor this in QuickApp
238 debug (_("Confirmation asked")) 238 debug (_("Confirmation asked"))
239 answer_data={} 239 answer_data={}
240 if type == "FILE_TRANSFERT": 240 if type == "FILE_TRANSFER":
241 debug (_("File transfert confirmation asked")) 241 debug (_("File transfer confirmation asked"))
242 dlg = wx.MessageDialog(self, _("The contact %(jid)s wants to send you the file %(filename)s\nDo you accept ?") % {'jid':data["from"], 'filename':data["filename"]}, 242 dlg = wx.MessageDialog(self, _("The contact %(jid)s wants to send you the file %(filename)s\nDo you accept ?") % {'jid':data["from"], 'filename':data["filename"]},
243 _('File Request'), 243 _('File Request'),
244 wx.YES_NO | wx.ICON_QUESTION 244 wx.YES_NO | wx.ICON_QUESTION
245 ) 245 )
246 answer=dlg.ShowModal() 246 answer=dlg.ShowModal()