Skip to content

Commit

Permalink
Merge pull request #483 from frmdstryr/coerce-timed-call-to-int
Browse files Browse the repository at this point in the history
Coerce QTimer.singleShot ms argument to int
  • Loading branch information
MatthieuDartiailh committed Mar 27, 2022
2 parents 0ad2793 + 060bbe6 commit 3d24a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enaml/qt/q_deferred_caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def timedCall(ms, callback, *args, **kwargs):
if QThread.currentThread() != QApplication.instance().thread():
deferredCall(timedCall, ms, callback, *args, **kwargs)
else:
QTimer.singleShot(ms, lambda: callback(*args, **kwargs))
QTimer.singleShot(int(ms), lambda: callback(*args, **kwargs))

0 comments on commit 3d24a5b

Please sign in to comment.