def setlayout(self, layout): if self.display is None: # make the initial display from graphdisplay import GraphDisplay self.display = GraphDisplay(layout) else: # send an async command to the display running the main thread from drawgraph import display_async_cmd display_async_cmd(layout=layout)
def cmsg_say(self, errmsg, *rest): from drawgraph import display_async_cmd display_async_cmd(say=errmsg)