如果我想自定义 WxPython 富文本控件,我该从哪里开始?
有谁知道有什么文章或代码示例可以帮助我开始自定义 WxPython 富文本控件吗?
我正在尝试扩展富文本控件,以允许我将控件(按钮、文本框等)插入编辑区域,例如,我希望能够插入一个控件,例如按钮(类似于 HTML 控件提供的输出,但我需要提供一个可编辑的界面)。
浏览 wxpython 和 wxWidgets 的文档,似乎控件中内置了基础设施来支持这一点,但我找不到任何帮助或示例来帮助我开始。
Does anyone know of any articles or code samples to get me started customising the WxPython rich text control?
I am trying to extend the rich text control to allow me to insert controls (buttons, text boxes etc) into the editing area e.g. instead of just inserting images or formatted text I would like to be able to insert a control such as a button (similar to the output provided by the HTML controls but I need to provide an editable interface).
Looking through the documentation for wxpython and wxWidgets it seems there is the infrastructure built into the controls to support this but I cannot find any help or examples to get me started.
从他们的网站下载 wxpython 演示,它应该为您提供 wxRichTextCtrl 的深入示例。如果不提供有关您的具体定制的任何信息,我就无能为力。
Download the wxpython demo from their site, it should provide you with an in-depth example of a wxRichTextCtrl. Without providing any information about your specific customizations, there is not much else I can help with.