parameters: (evt)
docstring: Update any open text controls to reflect the changes made in this
          panel from the checkboxes and choice controls.
          @param evt: Event that called this handler
docstring_summary: Update any open text controls to reflect the changes made in this
          panel from the checkboxes and choice controls.
          @param evt: Event that called this handler
docstring_tokens: Update any open text controls to reflect the changes made in this panel from the checkboxes and choice controls . @param evt : Event that called this handler
function: def OnUpdateEditor(evt):
          """Update any open text controls to reflect the changes made in this
          panel from the checkboxes and choice controls.
          @param evt: Event that called this handler
  
          """
          # XXX Why when running on windows this and other imports randomly
          #     become None. I have been unable to reproduce this behavior myself
          #     but have received enough error reports about it to believe it.
          #     If they were actually NoneTypes the dialog would not be able to
          #     be shown so this is very strange!!
          global ed_glob
          if ed_glob is None:
              import ed_glob
  
          e_id = evt.Id
          if e_id in (ed_glob.ID_PREF_TABS, ed_glob.ID_PREF_TABW,
                      ed_glob.ID_PREF_UNINDENT, ed_glob.ID_EOL_MODE,
                      ed_glob.ID_PREF_AALIAS, ed_glob.ID_SHOW_EOL,
                      ed_glob.ID_SHOW_LN, ed_glob.ID_SHOW_WS,
                      ed_glob.ID_WORD_WRAP, ed_glob.ID_PREF_AALIAS,
                      ed_glob.ID_PREF_INDENTW, ed_glob.ID_PREF_AUTOTRIM,
                      ed_glob.ID_PREF_VIRT_SPACE, ed_glob.ID_PREF_CARET_WIDTH):
  
              e_value = evt.EventObject.GetValue()
              if e_id == ed_glob.ID_EOL_MODE:
                  e_value = evt.EventObject.GetSelection()
              elif e_id == ed_glob.ID_PREF_CARET_WIDTH:
                  if e_value:
                      e_value = int(e_value)
                  else:
                      e_value = 1
  
              Profile_Set(ed_glob.ID_2_PROF[e_id], e_value)
          else:
              evt.Skip()
function_tokens: def OnUpdateEditor ( evt ) : # XXX Why when running on windows this and other imports randomly #     become None. I have been unable to reproduce this behavior myself #     but have received enough error reports about it to believe it. #     If they were actually NoneTypes the dialog would not be able to #     be shown so this is very strange!! global ed_glob if ed_glob is None : import ed_glob e_id = evt . Id if e_id in ( ed_glob . ID_PREF_TABS , ed_glob . ID_PREF_TABW , ed_glob . ID_PREF_UNINDENT , ed_glob . ID_EOL_MODE , ed_glob . ID_PREF_AALIAS , ed_glob . ID_SHOW_EOL , ed_glob . ID_SHOW_LN , ed_glob . ID_SHOW_WS , ed_glob . ID_WORD_WRAP , ed_glob . ID_PREF_AALIAS , ed_glob . ID_PREF_INDENTW , ed_glob . ID_PREF_AUTOTRIM , ed_glob . ID_PREF_VIRT_SPACE , ed_glob . ID_PREF_CARET_WIDTH ) : e_value = evt . EventObject . GetValue ( ) if e_id == ed_glob . ID_EOL_MODE : e_value = evt . EventObject . GetSelection ( ) elif e_id == ed_glob . ID_PREF_CARET_WIDTH : if e_value : e_value = int ( e_value ) else : e_value = 1 Profile_Set ( ed_glob . ID_2_PROF [ e_id ] , e_value ) else : evt . Skip ( )