Fine-tuning the looks

First, let's tweak the appearance of our app. This isn't exactly a critical functionality, but bear with me here, as these customizations are commonly requested and also pretty easy to set up. I'll briefly describe the properties that we covered in the previous chapter, and we'll add a number of new tweaks, such as window size and change of the mouse cursor.

Visual appearance

I strongly believe that the background color of any Paint app should initially be white. You're probably already familiar with this setting from the first chapter. Here's the line of code we add after the __name__ == '__main__' line to achieve the desired effect:

from kivy.core.window import Window from kivy.utils import get_color_from_hex Window.clearcolor ...

Get Kivy Blueprints 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.