controls/ProjectPropertiesPanel.py
changeset 1972 38e912c8bd31
parent 1970 b524b356aa58
child 1973 cc7a46953471
equal deleted inserted replaced
1971:62403f9b6ca9 1972:38e912c8bd31
   283     def GetTextCtrlChangedFunction(self, textctrl, name):
   283     def GetTextCtrlChangedFunction(self, textctrl, name):
   284         def TextCtrlChangedFunction(event):
   284         def TextCtrlChangedFunction(event):
   285             if self.Controller is not None and self.Values is not None:
   285             if self.Controller is not None and self.Values is not None:
   286                 old_value = self.Values.get(name)
   286                 old_value = self.Values.get(name)
   287                 new_value = textctrl.GetValue()
   287                 new_value = textctrl.GetValue()
   288                 if name not in REQUIRED_PARAMS and new_value == "":
   288                 if name in REQUIRED_PARAMS and new_value == "":
   289                     new_value = None
   289                     new_value = None
   290                 if name == 'companyURL':
   290                 if name == 'companyURL':
   291                     if not URI_model.match(new_value):
   291                     if not URI_model.match(new_value):
   292                         new_value = None
   292                         new_value = None
   293                         dialog = wx.MessageDialog(self, _('Invalid URL!\n'
   293                         dialog = wx.MessageDialog(self, _('Invalid URL!\n'