title: Tkinter | Position scrollbar to middle
body: <p>Simple question: how can I position my (horizontal) scrollbar (<code>self.scrollbar</code>) to the center. </p>
  
  <p>I know there is <code>self.scrollbar.set()</code> and but for some reason when I try this command:</p>
  
  <pre><code>def centerScroll(self):
      loc = self.scrollbar.get()
      self.scrollbar.set(loc[0]+0.5, loc[1]+0.5)
  </code></pre>
  
  <p>nothing happened. The scrollbar did not position to the center.</p>
  
  <p>(if you want to know more about the context see <a href="https://stackoverflow.com/questions/53891974/tkinter-custom-widget-infinite-horizontal-scrolling-calendar">this post</a>)</p>