Hello. Where can I find more examples and tutorials on StyledTextCtrl?
Unfortunately, I haven’t been able to find many good examples or tutorials on the StyledTextCtrl.
I have a few bookmarks that I have used, although some are rather old and may be out of date. You have probably found most of these already…
https://gist.github.com/driscollis/051348d5a6ddc280c87a9b12b2d0419f
The wxPython Wiki has a few entries:
https://wiki.wxpython.org/StyledTextCtrl
https://wiki.wxpython.org/StyledTextCtrl%20Lexer%20Quick%20Reference
https://wiki.wxpython.org/Using%20Python%20Regular%20Expressions%20with%20StyledTextCtrl
https://wiki.wxpython.org/StyledTextCtrl%20Log%20Window%20Demo
Sometimes I have had to refer back to the wxWidgets C++ documentation:
https://docs.wxwidgets.org/trunk/classwx_styled_text_ctrl-members.html
And I have often needed to look at the documentation for Scintilla (on which the StyledTextCtrl is based). Note that this can be more recent than the version modelled by a particular release of wxPython.
https://www.scintilla.org/ScintillaDoc.html
There have been a number of discussion about the StyledTextCtrl here on Discuss wxPython and also on Stackoverflow, although not all the questions have received satisfactory answers:
https://stackoverflow.com/questions/10535170/wxpython-styledtextctrl-set-partial-text-color
https://stackoverflow.com/questions/59022183/how-to-not-allow-undo-ctrlz-in-wx-stc-styledtextctrl
https://stackoverflow.com/questions/51880227/how-do-i-make-a-find-dialog-in-styledtextctrl
https://stackoverflow.com/questions/7807276/python-wx-stc-custom-highlighting
I think that StyledTextCtrl_1.py and StyledTextCtrl_2.py in wxdemo are good to know what wx.stc
can do.
This documentation is also great:
http://proton-ce.sourceforge.net/rc/scintilla/pyframe/www.pyframe.com/stc/index-2.html
I know about this site.