kivy/kivy — pull request #577 by aspidites (2012-07-17 17:59:10+00:00)
Title: - now possible to set a window's size at runtime (respects rotation)

Given the following code, kivy crashes with an attribute error, since EventDispatcher doesn't have a _size attribute:

```python
from kivy.app import App
from kivy.factory import Factory

class Foo(App):
def on_start(self):
self._app_window.size = 10, 10

if __name__ == '__main__':
Foo().run()
```

I've reworked the logic of the _set_size method to correct this. One thing to point out is that similarly to the _get_size method, I accommodate for rotation. If this shouldn't be so, let me know and I'll revert it.

It might also be worth implementing a window property to give direct access to the app's window. If you agree, I'll implement that as well.