dialogs/ProjectDialog.py
changeset 1734 750eeb7230a1
parent 1730 64d8f52bc8c8
child 1736 7e61baa047f0
equal deleted inserted replaced
1733:dea107dce0c4 1734:750eeb7230a1
    64             text = ""
    64             text = ""
    65             for i, item in enumerate(error):
    65             for i, item in enumerate(error):
    66                 if i == 0:
    66                 if i == 0:
    67                     text += item
    67                     text += item
    68                 elif i == len(error) - 1:
    68                 elif i == len(error) - 1:
    69                     text += _(" and %s")%item
    69                     text += _(" and %s") % item
    70                 else:
    70                 else:
    71                     text += ", %s"%item
    71                     text += ", %s" % item
    72             dialog = wx.MessageDialog(self,
    72             dialog = wx.MessageDialog(self,
    73                 _("Form isn't complete. %s must be filled!") % text,
    73                 _("Form isn't complete. %s must be filled!") % text,
    74                 _("Error"), wx.OK|wx.ICON_ERROR)
    74                 _("Error"), wx.OK|wx.ICON_ERROR)
    75             dialog.ShowModal()
    75             dialog.ShowModal()
    76             dialog.Destroy()
    76             dialog.Destroy()