icon
Icon of your application.
The icon can be located in the same directory as your main file. You
can set this as follows:
1 2 3 4
|
class MyApp(App):
def build(self):
self.icon = 'myicon.png' |
New in version 1.0.5.
Changed in version 1.8.0: icon is now a StringProperty. Don’t set the icon in the class as
previously stated in the documentation.
Note: For Kivy prior to 1.8.0, you need to set this as follows:
1 2 3
|
class MyApp(App):
icon = 'customicon.png' |
Recommended 256x256 or 1024x1024? for GNU/Linux and Mac OSX 32x32 for Windows7
or less. <= 256x256 for windows 8 256x256 does work (on Windows 8 at least), but is scaled
down and doesn’t look as good as a 32x32 icon.
Partager