wx.TextCtrl.SetDefaultStyle not working?

7stud bbxx789_05ss at yahoo.com
Mon Apr 23 18:47:46 EDT 2007


On Apr 23, 11:05 am, "bcwh... at pobox.com" <bcwh... at pobox.com> wrote:
> > On my platform, styling the text doesn't work for single line
> > TextCtrl's(which seems kind of stupid), and on Windows I think you are
> > required to specify wx.TE_RICH2 to style the text.  This following
> > code colors the entered text red for me:
>
> That's it!  I didn't have the TE_RICH2 option set.  It works now.
>
> The docs say it's Windows only.  Does the GTK version work without
> this flag?
>
> -- Brian

I'm not sure what GTK is, but on a Mac that style is ignored if it is
set.  Naturally, you can also style the text without that style being
set.  So, if you want your program to work cross platform, I assume
you should set that style.




More information about the Python-list mailing list