From 71b07accd8da72c7c8522faabbb93f8ee33c51af Mon Sep 17 00:00:00 2001 From: Pacman Ghost Date: Sun, 22 Oct 2023 14:03:25 +0700 Subject: [PATCH] Disable the context help button in the title bar (Windows). --- vasl_templates/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vasl_templates/main.py b/vasl_templates/main.py index a909e3b..ae220c8 100755 --- a/vasl_templates/main.py +++ b/vasl_templates/main.py @@ -243,6 +243,9 @@ def _do_main( template_pack, default_scenario, remote_debugging, debug ): #pylin if is_windows(): QApplication.setStyle( "windowsvista" ) + # disable the context help button in the title bar (Windows only) + QApplication.setAttribute( PyQt5.QtCore.Qt.AA_DisableWindowContextHelpButton ) + # check if we should disable the embedded browser disable_browser = webapp.config.get( "DISABLE_WEBENGINEVIEW" )