Commit 7caef273 authored by Dan Pascu's avatar Dan Pascu

Compacted code

parent ebe4c8d1
......@@ -24,8 +24,7 @@ def call_in_gui_thread(function, *args, **kw):
def call_later(interval, function, *args, **kw):
interval = int(interval*1000)
QTimer.singleShot(interval, lambda: function(*args, **kw))
QTimer.singleShot(int(interval*1000), lambda: function(*args, **kw))
@decorator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment