Skip to content

Commit

Permalink
Merge pull request #2208 from goanpeca/fix-tour
Browse files Browse the repository at this point in the history
A problem in the interactive tour was blocking the file and edit menus
  • Loading branch information
ccordoba12 committed Mar 2, 2015
2 parents e9007f5 + 5452aef commit 1186022
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spyderlib/tour.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -810,13 +810,18 @@ 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
# Needed to fix issue #2204
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)
Expand Down

0 comments on commit 1186022

Please sign in to comment.