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.uix.scrollview import ScrollView | |
from kivy.app import App | |
from kivy.uix.button import Button | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.clock import Clock | |
class Root(ScrollView): | |
def __init__(self, **kwargs): | |
super(Root, self).__init__(**kwargs) |
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 scrollv import ScrollView | |
from kivy.app import App | |
from kivy.uix.button import Button | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.clock import Clock | |
class Root(ScrollView): | |
def __init__(self, **kwargs): | |
super(Root, self).__init__(**kwargs) |
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 text_editor import TextEditorPopup | |
from kivy.core.window import Window | |
from kivy.uix.button import Button | |
from kivy.uix.label import Label | |
from kivy.app import App | |
class TApp(App): | |
def build(self): | |
root = Label(text='Press "Enter" to open TextInput') | |
Window.bind(on_key_down=self.on_key_down2) |
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
File "main.py", line 138, in <module> | |
app.run() | |
File "/usr/local/lib/python3.5/dist-packages/kivy/app.py", line 828, in run | |
runTouchApp() | |
File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 504, in runTouchApp | |
EventLoop.window.mainloop() | |
File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_sdl2.py", line 663, in mainloop | |
self._mainloop() | |
File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_sdl2.py", line 602, in _mainloop | |
self.modifiers): |
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 division | |
import math | |
from operator import itemgetter | |
import kivy | |
from kivy.app import App | |
from kivy.properties import ReferenceListProperty, ObjectProperty, StringProperty, ListProperty, BooleanProperty, NumericProperty, DictProperty | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.uix.scrollview import ScrollView | |
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
# The ScrollView widget | |
from kivy.uix.scrollview import ScrollView | |
class ScrollView2(ScrollView): | |
dont_do_scrolling = False | |
def on_touch_down(self, touch): | |
if self.dont_do_scrolling: | |
self.simulate_touch_down(touch) | |
return True |
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
start | |
action windowfocusgained args () | |
action keydown args (4096, 1073742050, 226, None) | |
[INFO ] [kb_dispatcher] on_key_down: 308 - ['alt'] | |
action keydown args (4352, 1073742050, 226, None) | |
action keydown args (4352, 1073742050, 226, None) | |
[INFO ] [kb_dispatcher] on_key_down: 308 - ['alt'] | |
action keydown args (4352, 1073741903, 79, None) | |
[INFO ] [kb_dispatcher] on_key_down: 275 - ['alt'] | |
[INFO ] [MediaPlayer ] on_error |
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.core.window.window_sdl2 import WindowSDL | |
from kivy.core.window import Window | |
from kivy.logger import Logger | |
def new_release_keyboard(self, *largs): | |
super(WindowSDL, self).release_keyboard(*largs) | |
if self._system_keyboard.widget: | |
self._win.hide_keyboard() | |
self._sdl_keyboard = 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
class FullscreenToggleApp(App): | |
fullscreen = BooleanProperty(False) | |
maximized = BooleanProperty(False) | |
last_size = ListProperty([0, 0]) | |
last_pos = ListProperty([0, 0]) | |
_window_update_lock = False | |
def build(self): | |
self.root_widget = RootWidget(self) | |
if platform in ('linux', 'win'): |
OlderNewer