如果我想自定义 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从他们的网站下载 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.