parameters: (self, value)
docstring: Extend SetValue to also select the text in the
          ComboTreeBox's text field.
          
          :param string `value`: set the value and select it
docstring_summary: Extend SetValue to also select the text in the
          ComboTreeBox's text field.
          
          :param string `value`: set the value and select it
docstring_tokens: Extend SetValue to also select the text in the ComboTreeBox s text field . : param string value : set the value and select it
function: def SetValue(self, value):
          """
          Extend SetValue to also select the text in the
          ComboTreeBox's text field.
          
          :param string `value`: set the value and select it
          
          """
          super(MSWComboTreeBox, self).SetValue(value)
          # We select the text in the ComboTreeBox's text field.
          # There is a slight complication, however. When the control is 
          # deleted, SetValue is called. But if we call SetMark at that 
          # time, wxPython will crash. We can prevent this by comparing the 
          # result of GetLastPosition and the length of the value. If they
          # match, all is fine. If they don't match, we don't call SetMark.
          if self._text.GetLastPosition() == len(value):
              self._text.SetMark(0, self._text.GetLastPosition())
function_tokens: def SetValue ( self , value ) : super ( MSWComboTreeBox , self ) . SetValue ( value ) # We select the text in the ComboTreeBox's text field. # There is a slight complication, however. When the control is  # deleted, SetValue is called. But if we call SetMark at that  # time, wxPython will crash. We can prevent this by comparing the  # result of GetLastPosition and the length of the value. If they # match, all is fine. If they don't match, we don't call SetMark. if self . _text . GetLastPosition ( ) == len ( value ) : self . _text . SetMark ( 0 , self . _text . GetLastPosition ( ) )