Skip to content

Commit 3263fa4

Browse files
committed
fix: Update tooltip after changing alpha
1 parent ae70daa commit 3263fa4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tktooltip/tooltip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def animation():
155155
self.wm_attributes("-alpha", 1)
156156

157157
for i in range(11):
158+
self.update()
158159
self.wm_attributes("-alpha", 0.1 * (10 - i))
159160
time.sleep(0.01)
160161

@@ -216,6 +217,7 @@ def animation():
216217
self.wm_attributes("-alpha", 0)
217218

218219
for i in range(11):
220+
self.update()
219221
self.wm_attributes("-alpha", 0.1 * i)
220222
time.sleep(0.01)
221223

0 commit comments

Comments
 (0)