This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
KV = ''' | |
ScrollView: | |
Label: | |
text: "SUPERCALIFRAGILISTICEXPIALIDOCIOUS" | |
size_hint_x: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
FBO example | |
=========== | |
This is an example of how to use FBO (Frame Buffer Object) to speedup graphics. | |
An Fbo is like a texture that you can draw on it. | |
By default, all the children are added in the canvas of the parent. | |
When you are displaying thousand of widget, you'll do thousands of graphics | |
instructions each frame. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
KV = ''' | |
FloatLayout: | |
EffectWidget: | |
id: eff | |
BoxLayout: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy import properties as P | |
KV = ''' | |
<CustomLabel@Label>: | |
font_size: app.font_size1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
KV = ''' | |
<Item@TabbedPanelItem>: | |
BoxLayout: | |
Label: | |
text: "it's me {}".format(root.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
netsh="/c/Windows/System32/netsh.exe" | |
icon_reconnecting="/usr/share/icons/ubuntu-mono-dark/actions/24/system-restart-panel.svg" | |
message_reconnecting="wifi reconnecting" | |
icon_connected="/usr/share/icons/Humanity/actions/16/dialog-ok.svg" | |
message_connected="wifi connected" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
KV = ''' | |
FloatLayout: | |
Image: | |
size_hint: None, None | |
source: 'landscape.png' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import random, choice | |
from glob import glob | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy.clock import Clock | |
from kivy.graphics import Rectangle | |
from kivy.uix.widget import Widget | |
from kivy.core.window import Window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread | |
import wikipedia | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy.properties import ListProperty, BooleanProperty | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory as F | |
from kivy.core.window import Window as W | |
from kivy import properties as P | |
KV = ''' | |
#:import C kivy.utils.rgba |