-
Travis CI: Some problem with the
Inspector
can cause the tests# 121 test_widget_multipopup
and# 122 test_widget_popup
to hang on Travis CI and in VirtualBox VMs. Manual minimise/maximise/restore/resize fixes it. Current workaround in55200ee
. -
Appveyor: MinGW tests fail due to lack of proper OpenGL support. Potential fix: see how
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
root@dab160c5a178:/app# apt-get install dbus --no-install-recommends --no-install-suggests -o APT::Install-Suggests=fals | |
e -o APT::Get::Install-Suggests=false -o APT::Install-Suggests=0 -o APT::Get::Install-Suggests=0 -o APT::Install-Recomme | |
nds=false -o APT::Get::Install-Recommends=false -o APT::Install-Recommends=0 -o APT::Get::Install-Recommends=0 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
libapparmor1 libsystemd-login0 | |
Suggested packages: | |
dbus-x11 |
Note: This would be in addition to a directive like in Python files:
coding: ...
- (+) Simple, straight-forward
- (-)
Builder.load_file(...)
andBuilder.load_string(open(...))
would have differing behaviours (Windows, Linux without UTF-8 locale) because defaultopen(...)
uses preferred system encoding - (?) can't say what the impact on mobile devices is (Android/iOS)
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
I'm trying to layout a widget like this: | |
---------------------------- | |
| [IMAGE] | | |
|[.....a label here.......]| | |
---------------------------- | |
Where the image is centered at the top, and the label is centered at the bottom. | |
Here's some code: | |
----------------------------- | |
from kivy.app import App |
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
#:kivy 1.8.0 | |
<Root>: | |
orientation: "vertical" | |
Button: | |
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread" | |
on_release: app.start_gtk_thread() |
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
$ cat main.py | |
from kivy.app import App | |
from kivy.clock import Clock | |
from kivy.lib import osc | |
class Bomberman(App): | |
def build(self): | |
self.osc = osc.listen(ipAddr='', port=osc.init(ipAddr='')) | |
Clock.schedule_interval(self.update_osc, 0) |
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 ] Logger: Record log in /home/waschtl/.kivy/logs/kivy_15-02-02_58.txt | |
[[1;32mINFO[0m ] Kivy v1.8.0 | |
[INFO ] Factory: 157 symbols loaded | |
[DEBUG ] Cache: register <kv.lang> with limit=None, timeout=Nones | |
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60s | |
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=Nones | |
[INFO ] Image: Providers: img_tex, img_dds, img_pygame, img_pil, img_gif | |
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60s | |
[DEBUG ] Cache: register <kv.shader> with limit=1000, timeout=3600s | |
[DEBUG ] App: Loading kv <./test.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
kivy sitemap | |
what we want to show | |
1 for all: | |
main page | |
org description/about page | |
cross platform, etc stuff | |
general stuff about being a welcoming, inclusive, community |
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
# py3 | |
# pip install beautifulsoup4 | |
import os | |
import sys | |
from os.path import join, dirname, abspath | |
from bs4 import BeautifulSoup | |
# linux \n, windows \r\n | |
lineend = '\r\n' | |
DIR = join(dirname(abspath(__file__)), 'parsed_conversations') |
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.base import runTouchApp | |
from kivy.uix.textinput import TextInput | |
class My(TextInput): | |
def insert_text(self, substring, from_undo=False): | |
print('A user inserted <{}>'.format(repr(substring))) | |
super(My, self).insert_text(substring, from_undo) | |
runTouchApp(My()) |
NewerOlder