@@ -42,29 +42,32 @@ def open_save_file_dialog():
4242def open_preferences ():
4343 active_window = webview .active_window ()
4444 if active_window :
45- active_window .load_html ('<h1>Preferences</h1><p>App preferences would open here (macOS app menu)</p>' )
45+ active_window .load_html (
46+ '<h1>Preferences</h1><p>App preferences would open here (macOS app menu)</p>'
47+ )
4648
4749
4850def check_for_updates ():
4951 active_window = webview .active_window ()
5052 if active_window :
51- active_window .load_html ('<h1>Check for Updates</h1><p>Checking for updates... (macOS app menu)</p>' )
53+ active_window .load_html (
54+ '<h1>Check for Updates</h1><p>Checking for updates... (macOS app menu)</p>'
55+ )
5256
5357
5458if __name__ == '__main__' :
5559 # App menu items (macOS only - appears between About and Services)
5660 # On other platforms, this menu is ignored
57- macos_app_menu = Menu ('__app__' , [
58- MenuAction ('Preferences...' , open_preferences ),
59- MenuSeparator (),
60- MenuAction ('Check for Updates' , check_for_updates ),
61- ])
62-
63- window_menu = [Menu (
64- 'Window' , [
65- MenuAction ('Test' , test )
66- ]
67- )]
61+ macos_app_menu = Menu (
62+ '__app__' ,
63+ [
64+ MenuAction ('Preferences...' , open_preferences ),
65+ MenuSeparator (),
66+ MenuAction ('Check for Updates' , check_for_updates ),
67+ ],
68+ )
69+
70+ window_menu = [Menu ('Window' , [MenuAction ('Test' , test )])]
6871
6972 app_menu = [
7073 macos_app_menu , # macOS app menu items
0 commit comments