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
openapi: 3.0.0 | |
info: | |
title: Example API | |
version: 1.0.0 | |
servers: | |
- url: https://example.com/ | |
paths: | |
/example2: | |
get: | |
tags: |
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 os | |
os.environ['KIVY_WINDOW'] = '' # noqa | |
os.environ['KIVY_GL_BACKEND'] = 'gl' | |
from kivy.base import EventLoop, runTouchApp | |
from kivy.core.window import WindowBase | |
from kivy.graphics import Callback, opengl as gl | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty |
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 os | |
os.environ['KIVY_WINDOW'] = '' # noqa | |
from kivy.base import EventLoop, runTouchApp | |
from kivy.core.window import WindowBase | |
from kivy.graphics import Callback, opengl as gl | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty | |
from direct.showbase.ShowBase import ShowBase |
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
constraint_handlers = {} | |
from cpython.ref cimport PyObject | |
cdef void _call_constraint_presolve_func(cpConstraint *constraint, cpSpace *space): | |
global constraint_handlers | |
global current_spaces | |
py_space = current_spaces[0] | |
py_constraint = <object><void *>constraint.data | |
constraint_dict = constraint_handlers[py_constraint] |
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 1 | |
if (some condition......): | |
some code........ | |
else: | |
# THIS WORKS # | |
# currently this only works for rangeOfString: method | |
f_type.size = 0 | |
f_type.alignment = 0 | |
f_type.type = FFI_TYPE_STRUCT | |
f_type.elements = elements |
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
#:kivy 1.5.1 | |
#:import kivy kivy | |
<FirstWidget> | |
GridLayout: | |
size: root.size | |
rows: 2 | |
Label: |
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 jnius import autoclass | |
WallpaperManager = autoclass('android.app.WallpaperManager') | |
PythonActivity = autoclass('org.renpy.android.PythonActivity') | |
manager = WallpaperManager.getInstance(PythonActivity.mActivity) | |
manager.clear() |
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.graphics.texture import Texture | |
from kivy.graphics import Rectangle, Color | |
from kivy.uix.widget import Widget | |
from kivy.graphics.opengl import glFinish | |
from kivy.app import App | |
from time import time | |
class RadialGradient(App): | |
def build(self): |
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.uix.widget import Widget | |
from kivy.uix.label import Label | |
from kivy.graphics import Color, Ellipse, Line | |
from kivy.graphics.instructions import Callback | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.core.window import Window | |
from kivy.interactive import InteractiveLauncher | |
from kivy.properties import NumericProperty | |
from kivy.event import EventDispatcher |
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
diff --git a/kivy/lang.py b/kivy/lang.py | |
index 10cdd21..5fa43bc 100644 | |
--- a/kivy/lang.py | |
+++ b/kivy/lang.py | |
@@ -613,6 +613,7 @@ class ParserRule(object): | |
''' | |
__slots__ = ('ctx', 'line', 'name', 'children', 'id', 'properties', | |
+ 'nested_properties', | |
'canvas_before', 'canvas_root', 'canvas_after', |
NewerOlder