code: def refresh(self):
          
          logger.debug("refresh user interface")
          try:
              with self.refresh_lock:
                  self.draw_screen()
          except AssertionError:
              logger.warning("application is not running")
              pass
docs: explicitely refresh user interface; useful when changing widgets dynamically