From 87497ff513dafdae6b996dc64553bcfbb7d28a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Thu, 26 Feb 2015 22:31:09 +0100 Subject: [PATCH 1/2] Fix issue 2204 in tour - blocking file and edit menu --- spyderlib/tour.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spyderlib/tour.py b/spyderlib/tour.py index 114930ad93f..72595729aa1 100644 --- a/spyderlib/tour.py +++ b/spyderlib/tour.py @@ -787,7 +787,7 @@ def __init__(self, parent): self.parent = parent - # variables to adjust + # Variables to adjust self.duration_canvas = [666, 666] self.duration_tips = [333, 333] self.opacity_canvas = [0.0, 0.7] @@ -810,13 +810,17 @@ def __init__(self, parent): self.is_tour_set = False + # Widgets self.canvas = FadingCanvas(self.parent, self.opacity_canvas, self.duration_canvas, self.easing_curve, self.color) self.tips = FadingTipBox(self.parent, self.opacity_tips, self.duration_tips, self.easing_curve) - # signals and slots + # Widgets setup + self.setAttribute(Qt.WA_TransparentForMouseEvents) + + # Signals and slots self.tips.button_next.clicked.connect(self.next_step) self.tips.button_previous.clicked.connect(self.previous_step) self.tips.button_close.clicked.connect(self.close_tour) From 5452aef58e60c778df05b128c1f844e532ee2292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Mon, 2 Mar 2015 10:10:45 +0100 Subject: [PATCH 2/2] Added comment to clarify which issue is fixed --- spyderlib/tour.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spyderlib/tour.py b/spyderlib/tour.py index 72595729aa1..b7f8c60c3cc 100644 --- a/spyderlib/tour.py +++ b/spyderlib/tour.py @@ -818,6 +818,7 @@ def __init__(self, parent): self.duration_tips, self.easing_curve) # Widgets setup + # Needed to fix issue #2204 self.setAttribute(Qt.WA_TransparentForMouseEvents) # Signals and slots