def updateDisplay(state): # print("Updating display with state = ", state) if (state.needsDisplayUpdate == True): dw.erase() dw.draw(state.original, (0,0)) dw.draw(state.processed, (((state.original).get_size())[0],0)) dw.flush() state.needsDisplayUpdate = False
def updateDisplay(state): # print("Updating display with state = ", state) if (state['needsDisplayUpdate'] == True): dw.erase() dw.draw(state['original'], (0,0)) dw.draw(state['processed'], (((state['original']).get_size())[0],0)) dw.flush() state['needsDisplayUpdate'] = False
def updateDisplay(state): # print("Updating display with state = ", state) if (state.needsDisplayUpdate == True): dw.erase() dw.draw(state.original, (0, 0)) dw.draw(state.processed, (((state.original).get_size())[0], 0)) dw.flush() state.needsDisplayUpdate = False
def updateDisplay(state): # print("Updating display with state = ", state) if state["needsDisplayUpdate"] == True: dw.erase() dw.draw(state["original"], (0, 0)) dw.draw(state["processed"], (((state["original"]).get_size())[0], 0)) dw.flush() state["needsDisplayUpdate"] = False