From 092077ce759ebd9436af6daaf2b6955de4125639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Sat, 2 Nov 2024 16:24:55 +0100 Subject: [PATCH] backcompatibility for setup_menu --- src/pymodaq_gui/utils/custom_app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pymodaq_gui/utils/custom_app.py b/src/pymodaq_gui/utils/custom_app.py index 48750c69..97a94c1a 100644 --- a/src/pymodaq_gui/utils/custom_app.py +++ b/src/pymodaq_gui/utils/custom_app.py @@ -72,7 +72,10 @@ def setup_ui(self): self.setup_actions() # see ActionManager MixIn class - self.setup_menu(self._menubar) + try: + self.setup_menu(self._menubar) + except TypeError: + self.setup_menu() # for backcompatibility self.connect_things()