Hello,
When I invoke .Copy() on a wx.TextCtrl created with style=wx.TE_MULTILINE, a get the following error:
wx._core.wxAssertionError: C++ assertion “IsSingleLine()” failed at …/wxPython-4.0.4/ext/wxWidgets/src/gtk/textctrl.cpp(853) in GetEditable(): shouldn’t be called for multiline
This happens in wxPython 4.0.4 on Linux with GTK+ 3. It didn’t happen with wxPython 4.0.3. I also tried to reproduce it with pure wxWidgets in C++ and it didn’t happen in wxWidgets 3.0.4.
I am attaching a minimal Python code reproducing the problem and also an analogous minimal C++ code demonstrating the non-problem in pure wxWidgets.
Am I doing anything wrong?
Best regards
Tomas Cerha
textctrl-copy-assertion-error.py (369 Bytes)
textctrl-copy-assertion-error.cpp (477 Bytes)