Style – decorating the interface

In this section, we will redecorate our interface to improve the look and feel of it. With very few strategic changes, we will completely renovate the way our application looks with a few steps. Let's start changing the background color from black to white. We will do this in the comicreator.py file, and here is its new header:

326. # File name: comiccreator.py
327. import kivy
328. from kivy.app import App
329. from kivy.lang import Builder
330. from kivy.uix.screenmanager import ScreenManager
331. from kivy.core.window import Window
332. 
333. Window.clearcolor = (1, 1, 1, 1)
334. 
335. Builder.load_file('style.kv')

We imported the Window class that manages the configurations of the application window, and controls ...

Get Kivy – Interactive Applications and Games in Python - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.