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
This commit is contained in:
		@@ -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__':
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user