Running apps in Mac OS
Now, we want to review some concepts so that we can run our app on the specific OS X platform. We are going to take the app and run it on OS X.
Getting ready
We need an app that can be run. For this purpose, let's use the same app that we used in our previous recipe. Also, it would be useful to read the recipe Running your code in Chapter 1, Kivy and the Kv Language in order to understand how we personalize the running for Microsoft Windows.
How to do it…
We want to know how to run our app from the terminal and how to give it the correct size. To make this possible, let's follow these:
Locate the directory that has the files,
e2.py
andGOR.mov
, something like:/Users/Me/Documents/e2app/
Open the file
e2.py
in your favorite editor.After the import lines, add these lines:
from kivy.core.window import Window Window.system_size=(600,500)
In the terminal, run the app:
$ kivye2.py
How it works…
The third step is where we are stated the size of our app window with the following instruction...