Utility functions

class edifice.utilities.Timer(function)[source]

Bases: object

A Timer for calling a function periodically.

The function passed in the constructor will be called every time_in_ms milliseconds after the Timer is started, until the Timer is stopped.

Parameters

function (Callable[[], Any]) – the function that will be called periodically

start(time_in_ms)[source]

Starts the timer.

Parameters

time_in_ms (int) – time interval for calling the function.

stop()[source]

Stops the timer.

edifice.utilities.alert(message)[source]

Displays a message in an alert box.

edifice.utilities.set_trace()[source]

Set a tracepoint in the Python debugger that works with Qt