Skip to content

Commit

Permalink
Only render tutorial steps when the target widget is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Apr 14, 2024
1 parent 7edde38 commit 3f6bf81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ltk/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,8 @@ def show(self):
repeat(lambda: self.fix(), f"render widget {id(self)}", 0.1)

def render(self):
if not getattr(self.widget, "is")(":visible"):
return
self.css("visibility", "visible")
left = self.widget.offset().left + self.widget.outerWidth() + 28
top = self.widget.offset().top
Expand Down

0 comments on commit 3f6bf81

Please sign in to comment.