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
import random | |
from kivy.base import runTouchApp | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy.properties import ListProperty | |
import kivy.utils | |
from kivy.garden.magnet import Magnet |
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 sample | |
from string import ascii_lowercase | |
from kivy.config import Config | |
Config.set('modules', 'inspector', '') | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.factory import Factory |
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 runTouchApp | |
from kivy.core.window import Window | |
from kivy.factory import Factory | |
from kivy.lang import Builder | |
from kivy.graphics import RenderContext | |
from kivy.properties import StringProperty | |
Builder.load_string(r''' | |
<ShaderWidget>: |
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.base import EventLoop, runTouchApp | |
from kivy.factory import Factory | |
from kivy.lang import Builder | |
from kivy.graphics import RenderContext | |
from kivy.properties import NumericProperty | |
from kivy.graphics.transformation import Matrix | |
from kivy.clock import Clock | |
EventLoop.ensure_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
title=pause resume test | |
author=GottaDiveIntoPython | |
orientation=sensor |
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 __future__ import print_function | |
from kivy.config import Config | |
Config.set('kivy', 'pause_on_minimize', 1) | |
# Config.set('graphics', 'fullscreen', 1) | |
from kivy.app import App | |
from kivy.factory import Factory | |
from kivy.graphics.texture import Texture | |
import kivy.core.window | |
from sys import stderr |
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
# This script shows you a situation that 'Animation._instances' keeps getting | |
# fat. I'm not sure this should be fixed or not. | |
import gc | |
from kivy.animation import Animation | |
from kivy.app import runTouchApp | |
from kivy.uix.widget import Widget | |
from kivy.clock import Clock | |
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
# case A ... 'stop_property()' affects to the next part of the animation | |
# case B ... 'stop_property()' doesn't affect to the next part of the animation | |
# | |
# This behavior confuses users. | |
from kivy.animation import Animation | |
from kivy.app import runTouchApp | |
from kivy.uix.widget import Widget | |
from kivy.uix.button import Button | |
from kivy.clock import Clock |
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.config import Config | |
Config.set('graphics', 'width', 400) | |
Config.set('graphics', 'height', 300) | |
from kivy.app import runTouchApp | |
from kivy.lang import Builder | |
runTouchApp(Builder.load_string(''' | |
FloatLayout: | |
Button: | |
text: 'Kivy' |
OlderNewer