From 0d9b8891484035ec88f975c8b8bad33adc8db418 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 19 May 2005 22:32:40 +0000 Subject: [PATCH] Corrections for fonts git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/params.py | 2 +- wxPython/wx/tools/XRCed/xxx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wxPython/wx/tools/XRCed/params.py b/wxPython/wx/tools/XRCed/params.py index d2a2a1e72a..2c3e02d278 100644 --- a/wxPython/wx/tools/XRCed/params.py +++ b/wxPython/wx/tools/XRCed/params.py @@ -282,7 +282,7 @@ class ParamFont(PPanel): fontFamiliesWx2Xml.get(font.GetFamily(), "default"), fontStylesWx2Xml.get(font.GetStyle(), "normal"), fontWeightsWx2Xml.get(font.GetWeight(), "normal"), - str(font.GetUnderlined()), + str(int(font.GetUnderlined())), font.GetFaceName().encode(), encName ] diff --git a/wxPython/wx/tools/XRCed/xxx.py b/wxPython/wx/tools/XRCed/xxx.py index bd0c72a08d..03bb4f70bc 100644 --- a/wxPython/wx/tools/XRCed/xxx.py +++ b/wxPython/wx/tools/XRCed/xxx.py @@ -296,7 +296,7 @@ class xxxObject: # This is a little special: it is both xxxObject and xxxNode class xxxParamFont(xxxObject, xxxNode): - allParams = ['size', 'style', 'weight', 'family', 'underlined', + allParams = ['size', 'family', 'style', 'weight', 'underlined', 'face', 'encoding'] def __init__(self, parent, element): xxxObject.__init__(self, parent, element) -- 2.45.2