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 kivy.graphics import Rectangle, Color | |
| from kivy.properties import (ListProperty, NumericProperty, ObjectProperty) | |
| from kivy.lang import Builder | |
| from matplotlib.pyplot import get_cmap # | |
| class Heatmap(Widget): |
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.lang import Builder | |
| from kivy.uix.anchorlayout import AnchorLayout | |
| from kivy.base import runTouchApp | |
| class AspectRatioEnforcer(AnchorLayout): | |
| def on_size(self, instance, size): | |
| self.resize_child() | |
| def resize_child(self): |
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 kivy.lang import Builder | |
| Builder.load_string(""" | |
| <RotatingWidget>: | |
| on_size: self.reset_child() | |
| on_pos: self.reset_child() | |
| canvas.before: | |
| PushMatrix: | |
| Rotate: |
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
| [INFO]: Will compile for the following archs: armeabi-v7a | |
| [INFO]: Getting Android API version from user argument: 27 | |
| [INFO]: Available Android APIs are (12, 19, 21, 23, 24, 25, 26, 27) | |
| [INFO]: Requested API target 27 is available, continuing. | |
| [INFO]: Getting NDK dir from from user argument | |
| [INFO]: Got NDK version from from user argument: 10.3.2 | |
| [INFO]: Getting NDK API version (i.e. minimum supported API) from user argument | |
| [INFO]: Using Google NDK 10.3.2 | |
| [INFO]: Found virtualenv at /home/sandy/.local/bin/virtualenv | |
| [INFO]: Found the following toolchain versions: ['4.9'] |
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.lang import Builder | |
| from kivy.base import runTouchApp | |
| root = Builder.load_string(""" | |
| BoxLayout: | |
| id: main_view | |
| orientation: 'horizontal' | |
| Widget: | |
| id: sidebar |
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
| diff --git a/Android/makesetup b/Android/makesetup | |
| index 785588c8f4..bcd6b03f8a 100755 | |
| --- a/Android/makesetup | |
| +++ b/Android/makesetup | |
| @@ -48,7 +48,7 @@ list_ext_libraries () | |
| done | |
| IFS=$save_IFS | |
| else | |
| - libs="WITH_NCURSES WITH_READLINE" | |
| + libs="" |
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.lang import parent, properties, ids | |
| w = Label( | |
| id='the_label', | |
| text=properties.width, | |
| pos=parent.pos, | |
| children=[ | |
| Button( | |
| pos=ids.the_label.pos), | |
| GridLayout( |
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
| import kivy | |
| from kivy.app import App | |
| from kivy.uix.gridlayout import GridLayout | |
| from kivy.uix.button import Button | |
| from kivy.uix.label import Label | |
| from kivy.uix.textinput import TextInput | |
| import socket |
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.lang import Builder | |
| from kivy.base import runTouchApp | |
| root = Builder.load_string(''' | |
| BoxLayout: | |
| orientation: 'vertical' | |
| CheckBox: | |
| color: r.value, g.value, b.value, a.value | |
| Slider: |
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.textinput import TextInput | |
| class YourTextInput(TextInput): | |
| def insert_text(self, text, from_undo=False): | |
| text = '!!!' | |
| return super().insert_text(text, from_undo=from_undo) |