How to hide the menu bar in Browse?

I would like to hide the menu bar (File, Edit, View, Tools, Help…) if it’s already shown and show it if it’s already hidden, with a same keyboard shortcut.
In other word I want to toggle between hide and show the menu bar with a same hotkey, and

when closing the program and opening it again, The menu bar in the Browse doesn’t reappears as it was in its default state(shown). (I want it hidden by default) So that every time I open the program the menu bar is hidden always, And when I want to display it, press the keyboard shortcut.
Thanks for help.
image

  • Is there any Add-on to do that?
    Please help! I appreciate your time and effort. Thanks in advance.

Try this:

def hide_menubar(browser: Browser):
    browser.form.menubar.setVisible(False)
gui_hooks.browser_menus_did_init.append(hide_menubar)

Later you can expand this idea and add the desired keyboard shortcuts.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.