December 9th, 2012, 05:55 AM
Join Date: Mar 2009
Time spent in forums: 3 h 11 m 28 sec
Reputation Power: 0
Wxpython - wx.TextCtrl - forcing styles
Hi, just a simple question on a wx.TextCtrl element.
i have this text field where on an application, where the user can add a string on it.
i want a text field with a red text on it.
so i've generated this code:
self.hRepositoryTextfield = wx.TextCtrl(self.hPanel)
if the user copy on this text field some string with applied font on it (for example a black coloured string, or a string with a particular font) the red color, anyway the default style is not respected.
i would like the style i decide for my wx.TextCtrl is always forced according my settings.
how can i do?
thank you in advance