Richard Townsend

Results 22 comments of Richard Townsend

Thanks for your replies, Scott, they certainly clear up my confusion. The reason for my initial approach was that, in my real application, there is quite a lot of processing...

> > It looks like it would be somewhat challenging to do what I proposed earlier - there's no copy constructor for `wxCalendarDateAttr`, nor is there an equality operator, so...

Instead of using BeginUnderline(), BeginTextColour() and re-entering the text etc, why not create a RichTextAttr to define the style and then use SetStyle() to apply the style to the appropriate...

The Replace() method will do that. Replace(self, from_, to_, value) Replaces the content in the specified range with the string specified by value. Parameters from_ (long) – to_ (long) –...

I tried to run your example code. I think I have fixed the formatting issues caused by pasting to this list. However, I'm getting an error where it tries to...

Thanks for uploading the code. I think this is a feature of the RichTextCtrl. You can see it doing the same thing in the example in the wxPython demo. If...

Happy to help. If you wish to discuss anything else about the RTC, or other wxPython topics I would recommend posting a question at [https://discuss.wxpython.org/](https://discuss.wxpython.org/)

I tested your code using Python 3.10.4 + wxPython 4.2.0 gtk3 (phoenix) wxWidgets 3.2.0 + Linux Mint 21 and got the same results, so it's not limited to GTK2. If...

Also, in the example on the documentation page: [https://docs.wxpython.org/wx.ComboCtrl.html](https://docs.wxpython.org/wx.ComboCtrl.html) the ListCtrlComboPopup class provides an AddItem() method, but the section on "how you would create and populate it in a dialog...

I am also running on Linux/GTK. I can drag successfully from a RichTextCtrl to another editor (xed), but not the other way around. I can't drag & drop from a...