From: Robin Dunn Date: Sat, 26 Jun 2004 18:45:02 +0000 (+0000) Subject: don't create the font until after the app is initialized X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/abd78a9ff1215b0e7447a57f7307480bd14df958 don't create the font until after the app is initialized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/samples/StyleEditor/STCStyleEditor.py b/wxPython/samples/StyleEditor/STCStyleEditor.py index d65b8a87c7..61ca5ed0a7 100644 --- a/wxPython/samples/StyleEditor/STCStyleEditor.py +++ b/wxPython/samples/StyleEditor/STCStyleEditor.py @@ -59,8 +59,7 @@ from wxPython.stc import * settingsIdNames = {-1: 'Selection', -2: 'Caret', -3: 'Edge'} -commonPropDefs = {'fore': '#888888', 'size': 8, - 'face': wxSystemSettings_GetSystemFont(wxSYS_DEFAULT_GUI_FONT).GetFaceName()} +commonPropDefs = {} styleCategoryDescriptions = { '----Language----': 'Styles spesific to the language', @@ -370,6 +369,11 @@ class STCStyleEditDlg(wxDialog): pos=wxPoint(88, 0), size=wxSize(16, 16), style=0) def __init__(self, parent, langTitle, lang, configFile, STCsToUpdate=()): + global commonPropDefs + commonPropDefs = {'fore': '#888888', + 'size': 8, + 'face': wxSystemSettings_GetSystemFont(wxSYS_DEFAULT_GUI_FONT).GetFaceName()} + self.stc_title = 'wxStyledTextCtrl Style Editor' self.stc_title = 'wxStyledTextCtrl Style Editor - %s' % langTitle if wxPlatform == '__WXMSW__':