Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只是想知道是否有任何规定/方法可以绑定对图像的点击/(或包含按钮)以导致某些事件。还有什么方法可以在 wxPython 的 RichTextCtrl 中绘制 StaticLine 之类的东西。
您可以根据需要绑定到按钮,也可以使用位图按钮,或者将鼠标事件绑定到静态位图。wxPython 演示包含所有这些方法的示例。
关于“StaticLine 有点东西”,您是否尝试按需调整richtextctrl 的大小?您可能希望改为查看 ExpandoTextCtrl,它也在演示中进行了演示。如果没有,我需要比“有点东西”更详细的信息.. ;)