Skip to content

Commit f32c71f

Browse files
author
Ram Rachum
committed
-=
1 parent 273d5ba commit f32c71f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

garlicsim_wx/garlicsim_wx/misc/menu_bar/menu_bar.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def __init__(self, frame):
1313
super(MenuBar, self).__init__()
1414
self.frame = frame
1515

16+
is_mac = (wx.Platform == '__WXMAC__')
17+
1618
self.file_menu = FileMenu(frame)
1719
self.Append(self.file_menu, '&File')
1820

@@ -48,7 +50,9 @@ def __init__(self, frame):
4850
)
4951

5052
self.window_menu = WindowMenu(frame)
51-
self.Append(self.window_menu, '&Window')
53+
title_of_window_menu = '&Workspace' if is_mac else '&Window'
54+
self.Append(self.window_menu, title_of_window_menu)
5255

5356
self.help_menu = HelpMenu(frame)
54-
self.Append(self.help_menu, '&Help')
57+
title_of_help_menu = 'GarlicSim &Help' if is_mac else '&Help'
58+
self.Append(self.help_menu, title_of_help_menu)

0 commit comments

Comments
 (0)