예제 #1
0
 def OnEnter (self, event) :
   if (self._path_style & WXTBX_PHIL_PATH_DEFAULT_CWD) :
     value = self.GetValue()
     if (value == "") :
       from libtbx.utils import getcwd_safe
       self.SetValue(getcwd_safe())
   self.Validate()
   self.DoSendEvent()
예제 #2
0
 def OnEnter(self, event):
   if (self._path_style & WXTBX_PHIL_PATH_DEFAULT_CWD):
     value = self.GetValue()
     if (value == ""):
       from libtbx.utils import getcwd_safe
       self.SetValue(getcwd_safe())
   self.Validate()
   self.DoSendEvent()