def _OnFocusLost(self, event): TextCtrl_LC._OnFocusLost(self, event) v = self.GetValue() or '' if v: p = 'http://' if not v.lower().startswith(p): self.SetValue(p+v)
def _OnFocusLost(self, event): TextCtrl_LC._OnFocusLost(self, event) v = self.GetValue() or '' if v: p = 'http://' if not v.lower().startswith(p): self.SetValue(p + v)