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 | |
KV = ''' | |
#:import get_random_color kivy.utils.get_random_color | |
<-StencilView>: |
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.clock import Clock | |
from kivy.properties import NumericProperty | |
KV = ''' |
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 | |
KV = ''' | |
BoxLayout: | |
orientation: 'vertical' |
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.core.text import Text | |
from kivy.clock import mainthread | |
KV = ''' | |
TextInput: |
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 | |
KV = ''' | |
#:import choices random.choices | |
#:import printable string.printable |
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
'''Demonstrate showing a cropped image using get_region | |
Drop any image supported by kivy on the window and play with the sliders | |
''' | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.core.window import Window | |
from kivy import properties as P | |
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
'''Theme object example | |
''' | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy import properties as P | |
from kivy.lang.parser import global_idmap | |
from kivy.event import EventDispatcher | |
KV = ''' |
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
'''Simulate a specific device that is not in kivy's screen module | |
''' | |
width = 1480 | |
height = 720 | |
dpi = 274 | |
density = 1 | |
scale = .5 | |
portrait = True | |
if portrait: |
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 randint | |
from datetime import datetime, timedelta | |
from math import log10, ceil | |
from kivy.app import App | |
from kivy.animation import Animation | |
from kivy.clock import Clock | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy import properties as P |