editors/TextViewer.py
changeset 1488 00fb79aba7ac
parent 1417 374238039643
child 1504 d3f97b72c02a
equal deleted inserted replaced
1487:789acd7cc347 1488:00fb79aba7ac
   256                     blockinputs = values[3]
   256                     blockinputs = values[3]
   257                 else:
   257                 else:
   258                     blockinputs = None
   258                     blockinputs = None
   259                 if values[1] != "function":
   259                 if values[1] != "function":
   260                     if blockname == "":
   260                     if blockname == "":
   261                         dialog = wx.TextEntryDialog(self.ParentWindow, "Block name", "Please enter a block name", "", wx.OK|wx.CANCEL|wx.CENTRE)
   261                         dialog = wx.TextEntryDialog(self.ParentWindow, _("Block name"), _("Please enter a block name"), "", wx.OK|wx.CANCEL|wx.CENTRE)
   262                         if dialog.ShowModal() == wx.ID_OK:
   262                         if dialog.ShowModal() == wx.ID_OK:
   263                             blockname = dialog.GetValue()
   263                             blockname = dialog.GetValue()
   264                         else:
   264                         else:
   265                             return
   265                             return
   266                         dialog.Destroy()
   266                         dialog.Destroy()