title: How to keep displaying the changeable real-time data in label every second?
body: <p>In my code, it uses pyaudio to get user's voice pitch and volume.
  It keeps showing the numeric values every second in terminal.
  <a href="https://i.stack.imgur.com/0n85I.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0n85I.jpg" alt="enter image description here" /></a></p>
  <p>The problem is when I use Stringproperty or ids method to display them in the label, it doesn't show anything.
  <a href="https://i.stack.imgur.com/sORjW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sORjW.jpg" alt="enter image description here" /></a></p>
  <p>But, after the code breaks, then it shows the data which is the last volume and pitch in the label.
  <a href="https://i.stack.imgur.com/pwvln.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pwvln.jpg" alt="enter image description here" /></a></p>
  <p>How can I display the real-time data every second in the label?</p>
  <p>Here is my sample code .py:</p>
  <pre><code>while True:
      
          data = stream.read(1024)
          samples = num.fromstring(data,
              dtype=aubio.float_type)
          pitch = pDetection(samples)[0]
          # Compute the energy (volume) of the
          # current frame.
          volume = num.sum(samples**2)/len(samples)
          # Format the volume output so that at most
          # it has six decimal numbers.
          volume = &quot;{:.6f}&quot;.format(volume)
          print(pitch)
          print(volume)
          
          #self.ids.pitchs.text= str(pitch)
          self.ids.volumes.text= volume 
          self.pitchs1 = str(pitch) 
        
              
          if keyboard.is_pressed('1'):  # if key '1' is pressed 
                  break  # finishing the[1] loop
          
  </code></pre>
  <p>here is .kv file:</p>
  <pre><code>&lt;Genereate&gt;
   GridLayout:
       cols: 1
   GridLayout:
       size: root.width, root.height
       cols:2
       Label:
           id: pitchs
           text: root.pitchs1
           color: 1,0,1,1
      
       Label:
           id: volumes
           text: &quot;Volume&quot;
           color: 1,0,1,1
   Button:
       text: &quot;Submit&quot;
       size_hint: .5, .6
       on_release: root.pitches() 
  </code></pre>