itom.timer interval can also be 0

Issue #27 resolved
M. Gronle created an issue

The PythonUiTimer (itom.timer) does not accept an interval < 1. However QTimer accepts intervals equal to 0ms. This should be accepted by itom.timer as well. Additionally, the interval is an integer in ms, no double like it is the case now.

Once this is changed, the matplotlib backend script, that calls an instance of this timer, can change its interval from 1 to 0.

Comments (1)

  1. M. Gronle reporter

    fixes issue 27 : itom.timer now accepts an interval of 0ms. The interval must now always be in integer. Further argument singleShot added to constructor in order to allow a single shot timer that only fires once after a start.

    → <<cset 063542a3471c>>

  2. Log in to comment