title: how to set style of text ctrl in wxpython?
body: <p>I have a text ctrl as follows:</p>
  
  <pre><code>self.abc= wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER|wx.TE_MULTILINE)
  </code></pre>
  
  <p>What I want is the ability to add or remove styles from the text ctrl after it was created.</p>
  
  <p>something like:</p>
  
  <pre><code>if x:
     make abc to style=wx.TE_PROCESS_ENTER|wx.TE_MULTILINE|TE_READONLY
  else:
     make abc to style=wx.TE_PROCESS_ENTER|wx.TE_MULTILINE
  </code></pre>
  
  <p>I saw the function <code>SetStyle</code> however from what I read it only ADD style, it doesn't overwrite existing style.</p>
  
  <p>What can I do?</p>