title: Kivy: How to change window size?
body: <p>I'm starting to write a program using <a href="http://kivy.org/#home" rel="noreferrer"><code>kivy</code></a>, but I have some problems understand how it deals with sizes.</p>
  
  <p>For example:</p>
  
  <pre><code>import kivy
  kivy.require('1.5.1')
  
  from kivy.app import App
  from kivy.uix.button import Button
  
  class MyApp(App):
      def build(self): return Button(text='Some text')
  
  MyApp().run()
  </code></pre>
  
  <p>The above program works, but it creates a <strong>huge</strong> window. Trying to set <code>size=(100, 100)</code> does not change anything. Setting <code>size_hint=(None, None)</code> will show a button with the correct size, but it is placed randomly inside a <em>still</em> huge window.
  Trying to set the size of <code>MyApp</code> does not change anything too.</p>
  
  <p>How do I create a window with the same size of the button?
  It should be a simple enough task, but looking at the documentation and example I can't find anything about this.</p>