Need to get in touch? Message me on our Discord server.
We'll cover how Kivy works and how to use it. We'll cover setting up Kivy, key features, and best practices.
- 2018-04-14 - Class 1
- Installing Kivy
- Running our first program: quickstart
- 2018-04-21 - Class 2
- 2018-04-28 - Class 3
- Input
- Android APIs
- Deploying to Android
- 2018-05-12
- 2018-05-19
- 2018-05-26
- 2018-06-02
- 2018-06-09
- 2018-06-16
If you want to deploy to Android or OS X, Windows won't work. The tools simply do not support Windows yet. To get around this, we can use Linux. We can setup a virtual machine (VM) to run Linux inside your Windows computer. I setup a VM on USB that I can give you during class, but I recommend you follow the setting up instructions below to save class time. If you can't setup the VM yourself successfully, we'll set you up in class.
Use the below login info. Kivy and PyCharm are already setup for you.
Username: student
Password: pr0grammingisHARDbutyoucandoit!
We're not going to go into why we do each of these steps. This is a one-time setup, unless you plan on becoming a major Linux user. If that is something you're interested in, let me know in Discord, and I can explain things to you.
- Download and install VirtualBox for Windows Hosts (assuming you're on Windows)
- Download the Ubuntu ISO for version 16.04.4 LTS (or similar number)
- In VirtualBox, click the blue New button on the top left
- Set the name as Ubuntu, and it will automatically set the other things
- I usually set memory to 4096 MB, as most of the laptops I use have 8 GB of memory or more. Set this to something reasonable for your hardware.
- Create a virtual hard disk now
- Stick with VDI, it's simplest
- Go with Dynamically allocated
- For hard disk size, 10 GB should be enough, but I usually set it to 30 GB for good measure
- Select the VM in the list on the left and hit the green Start arrow at the top
- Click the folder icon with the green up arrow and navigate to and select the Ubuntu ISO you downloaded
- Go through the setup. It should be pretty self-explanatory
- Restart as requested
- Login
- After a moment, the software updater will appear and ask if you want to update. Say yes. You'll be asked to restart the virtual machine. Please do it.
- After restarting, hit the Windows Key, type in Terminal, and hit enter
- Copy
sudo add-apt-repository ppa:kivy-team/kivy
, hit enter, enter your password, and hit enter again when prompted - Copy the below, hit enter, hit
y
when prompted, and do a little dance. You have Kivy installed
sudo apt-get install -y \
python-pip \
build-essential \
git \
vim \
python3-dev \
ffmpeg \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
libportmidi-dev \
libswscale-dev \
libavformat-dev \
libavcodec-dev \
zlib1g-dev \
libgstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
openjdk-8-jdk
- Good job! Now, you're ready to start on class 1
We want Cython 0.26