This file contains hidden or 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 shared import Shared | |
class AppAdder: | |
def __init__(self, *_): | |
self.my_app = Shared.my_app | |
print (self.my_app) | |
return super().__init__(*_) |
This file contains hidden or 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 = """ | |
FloatLayout | |
MyWidget | |
source1:'1.jpg' | |
source2:'cosmos.webp' | |
<MyWidget> |
This file contains hidden or 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.uix.screenmanager import ShaderTransition | |
from kivy.properties import StringProperty | |
class MyWipeTransition(ShaderTransition): | |
'''Wipe transition, based on a fragment Shader. | |
''' | |
WIPE_TRANSITION_FS = '''$HEADER$ |
This file contains hidden or 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.uix.label import Label | |
from kivy.core.window import Window | |
#Window.size = (500, 300) | |
#Window.borderless = True | |
This file contains hidden or 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.uix.label import Label | |
from kivy.core.window import Window | |
#Window.size = (500, 300) | |
Window.borderless = True | |
This file contains hidden or 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.uix.label import Label | |
from kivy.core.window import Window | |
Window.size = (500, 300) | |
Window.borderless = True | |
This file contains hidden or 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.uix.widget import Widget | |
from Shared import Shared | |
class MyWidget(Widget): | |
def on_touch_down(self, touch): | |
print (Shared.mouse_pos) |
This file contains hidden or 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.properties import BooleanProperty, ObjectProperty | |
from kivy.uix.videoplayer import VideoPlayer | |
#from kivy.core.window import Window | |
#Window.fullscreen = 'auto' | |
KV = """ |
This file contains hidden or 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
class NonCallable: | |
#TODO: now this is a behavior, not metaclass, | |
# so msg has to refer to NonCallable | |
def __call__(self, *args, **kwargs): | |
is_root = len(self.__mro__) ==2 | |
cls_name = self.__name__ | |
type_name = type(self).__name__ |
This file contains hidden or 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.uix.widget import Widget | |
from kivy.animation import Animation as A | |
KV = """ | |
AnchorLayout | |
MyWidget | |
size_hint: None, None |