new_contents: # https://forum.omz-software.com/topic/4284/how-do-i-make-a-full-screen-button-and-handle-button-down-and-button-up-events
  #
  # press and hold less that one second to add a '.' to the title
  # press and hold for one second or more to add a '-' to the title
  
  from datetime import datetime as dt
  import ui
  
  
  class FullScreenButtonView(ui.View):
      def __init__(self):
          self.name = ''
  
      def touch_began(self, touch):
          self.tap_time = dt.now()
  
      def touch_ended(self, touch):
          self.name += '.' if (dt.now() - self.tap_time).total_seconds() < 1 else '-'
  
  
  FullScreenButtonView().present()
  
subject: Create full_screen_view.py