Re: Can't select specific font for textctrl
Dietmar Schwertberger <[email protected]> Fri, 28 Jun 2019 19:40:12 +0200
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 28.06.2019 15:55, Brendan Simon (eTRIX) wrote:
> I had installed new fonts without rebooting. Rebooting the system
> seems to make things better.
The red colour is from validation of the string.
It seems that 'teletype' is not in the validation regular expression.
Does adding 'teletype' fix the problem?
In new_properties.py FontProperty:
validation_re = re.compile(" *\[(\d+), *'(default|decorative|roman|swiss|script|modern)', *"
"'(normal|slant|italic)', *'(normal|light|bold)', *(0|1), *'([a-zA-Z _]*)'] *")
to:
validation_re = re.compile(" *\[(\d+), *'(default|teletype|decorative|roman|swiss|script|modern)', *"
"'(normal|slant|italic)', *'(normal|light|bold)', *(0|1), *'([a-zA-Z _]*)'] *")
Regards,
Dietmar
_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general