Skip to content

Commit

Permalink
Refresh forms to reduce unresponsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Nov 27, 2024
1 parent 61eb1f0 commit d36c19b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysollib/game/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,8 @@ def _autoPlay(self, autofaceup, autodrop, autodeal, sound):
self.finishMove()
if self.checkForWin():
return 1
self.top.update_idletasks()
self.top.busyUpdate()
return 0

def _autoDeal(self, sound=True):
Expand Down
2 changes: 2 additions & 0 deletions pysollib/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,8 @@ def dealToStacks(self, stacks, flip=1, reverse=0, frames=-1):
if flip:
self.game.flipMove(self)
self.game.moveMove(1, self, r, frames=frames)
self.game.top.update_idletasks()
self.game.top.busyUpdate()
self.game.leaveState(old_state)
if TOOLKIT == 'kivy':
self.game.top.waitAnimation()
Expand Down

0 comments on commit d36c19b

Please sign in to comment.