Append text to wx.stc.StyledTextCtrl

138 Views Asked by At

I would like to add text or a char to my StyledTextCtrl in a specific position. for example add the char 'a' after the position 52 (after 52 chars).

import wx
from wx.stc import StyledTextCtrl

app = wx.App()
frame = wx.Frame(None, -1, title='2', pos=(0, 0), size=(500, 500))
frame.Show(True)
messageTxt = StyledTextCtrl(frame, id=wx.ID_ANY, pos=(0, 0), size=(100 * 3, 100),
                            style=wx.TE_MULTILINE, name="File")

app.SetTopWindow(frame)
app.MainLoop()
0

There are 0 best solutions below