@@ -126,6 +126,9 @@ def __init__(self, application, controller):
126
126
self .SetLayoutDirection (wx .Layout_LeftToRight )
127
127
# self.SetLayoutDirection(wx.Layout_RightToLeft)
128
128
129
+ self .fontinfo = application .fontinfo
130
+ self .SetFont (wx .Font (self .fontinfo ))
131
+
129
132
self .aui_mgr = aui .AuiManager (self )
130
133
131
134
# tell AuiManager to manage this frame
@@ -215,6 +218,7 @@ def _init_ui(self):
215
218
# DEBUG: self._notebook_theme = 0 (allow to select themes for notebooks)
216
219
# DEBUG:self.notebook = NoteBook(self.splitter, self._application, self._notebook_style)
217
220
self .notebook = NoteBook (self , self ._application , self ._notebook_style )
221
+ self .notebook .SetFont (wx .Font (self .fontinfo ))
218
222
self .notebook .SetBackgroundColour (Colour (self .color_background ))
219
223
self .notebook .SetForegroundColour (Colour (self .color_foreground ))
220
224
self .aui_mgr .AddPane (self .notebook , aui .AuiPaneInfo ().Name ("notebook_editors" ).
@@ -232,6 +236,8 @@ def _init_ui(self):
232
236
_menudata = get_menudata ()
233
237
234
238
self .main_menu = MenuBar (self )
239
+ self .main_menu ._mb .SetFont (wx .Font (self .fontinfo ))
240
+ self .main_menu .m_frame .SetFont (wx .Font (self .fontinfo ))
235
241
self .toolbar = ToolBar (self )
236
242
self .toolbar .SetMinSize (wx .Size (100 , 60 ))
237
243
self .toolbar .SetBackgroundColour (Colour (self .color_background ))
@@ -257,6 +263,7 @@ def _init_ui(self):
257
263
# Tree is always created here
258
264
self .tree = Tree (self , self .actions , self ._application .settings )
259
265
self .tree .SetMinSize (wx .Size (275 , 250 ))
266
+ self .tree .SetFont (wx .Font (self .fontinfo ))
260
267
# self.leftpanel.Bind(wx.EVT_SIZE, self.tree.OnSize)
261
268
# self.aui_mgr.AddPane(self.leftpanel, aui.AuiPaneInfo().Name("left_panel").Caption("left_panel").Left())
262
269
# DEBUG: Next was already called from application.py
@@ -270,6 +277,7 @@ def _init_ui(self):
270
277
if new_ui : # Only when creating UI we add panes
271
278
# ##### File explorer panel is always created here
272
279
self .filemgr = FileExplorer (self , self .controller )
280
+ self .filemgr .SetFont (wx .Font (self .fontinfo ))
273
281
self .filemgr .SetMinSize (wx .Size (275 , 250 ))
274
282
# DEBUG: Next was already called from application.py
275
283
self .aui_mgr .AddPane (self .filemgr , aui .AuiPaneInfo ().Name ("file_manager" ).LeftDockable ())
@@ -279,6 +287,7 @@ def _init_ui(self):
279
287
self .CreateStatusBar (name = "StatusBar" )
280
288
self ._status_bar = self .FindWindowByName ("StatusBar" , self )
281
289
if self ._status_bar :
290
+ self ._status_bar .SetFont (wx .Font (self .fontinfo ))
282
291
self ._status_bar .SetBackgroundColour (Colour (self .color_background ))
283
292
self ._status_bar .SetForegroundColour (Colour (self .color_foreground ))
284
293
# set main frame icon
0 commit comments