Skip to content

Commit

Permalink
Merge pull request #4585 from dalthviz/fixes_issue_4553
Browse files Browse the repository at this point in the history
PR: Prevent hangs and showing tips after tour
  • Loading branch information
ccordoba12 authored Jun 11, 2017
2 parents 4952220 + 8517e8d commit a7520bd
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions spyder/app/tour.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,20 +912,22 @@ def __init__(self, parent):

def _resized(self, event):
""" """
size = event.size()
self.canvas.setFixedSize(size)
self.canvas.update_canvas()
if self.is_running:
size = event.size()
self.canvas.setFixedSize(size)
self.canvas.update_canvas()

if self.is_tour_set:
self._set_data()
if self.is_tour_set:
self._set_data()

def _moved(self, event):
""" """
pos = event.pos()
self.canvas.move(QPoint(pos.x(), pos.y()))
if self.is_running:
pos = event.pos()
self.canvas.move(QPoint(pos.x(), pos.y()))

if self.is_tour_set:
self._set_data()
if self.is_tour_set:
self._set_data()

def _close_canvas(self):
""" """
Expand Down Expand Up @@ -1184,7 +1186,9 @@ def start_tour(self):
def close_tour(self):
""" """
self.tips.fade_out(self._close_canvas)
self.tips.show()
self.canvas.set_interaction(False)
self._set_modal(True, [self.tips])
self.canvas.hide()

try:
# set the last played frame by updating the available tours in
Expand Down

0 comments on commit a7520bd

Please sign in to comment.