def startDataManagerInGui(exitWhenClosed = False): execInGui(lambda :startDataManager(exitWhenClosed))
def startDataManagerInGui(exitWhenClosed = False): # 2) start the datamanager in gui execInGui(lambda :startDataManager(exitWhenClosed))
def draw(): figure = matplotlib.pyplot.gcf() execInGui(lambda figure = figure: drawInGui(figure))