Conditional widget style

ChordPro Team <[email protected]> Thu, 3 Feb 2022 10:02:02 +0100
Newsgroups gmane.comp.python.wxglade
Organization ChordPro
Message-ID <[email protected]>
Hi,

I have a TextCtrl that I want to be wxTE_READONLY but only when the
program is run on MacOS.

The best I have found so far is to call its SetEditable method to change
its editable status, but that doesn't change the difference in style between
a wxTE_READONLY widget and a normal one.

Is there a decent and reliable way to accompish this?

Thanks.