Skip to content

Instantly share code, notes, and snippets.


Peter Badida KeyWeeUsr

View GitHub Profile
View gist:b3b719aab83c1e850eb52e03e224000b
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:

Known Problems

  • 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 in 55200ee.

  • Appveyor: MinGW tests fail due to lack of proper OpenGL support. Potential fix: see how

KeyWeeUsr /
Created Jun 30, 2018 — forked from dolang/
[Draft] New Default Encoding for .kv Files: Pros / Cons

New Default Encoding for .kv Files: Pros / Cons

Note: This would be in addition to a directive like in Python files: coding: ...

UTF-8 Everywhere

  • (+) Simple, straight-forward
  • (-) Builder.load_file(...) and Builder.load_string(open(...)) would have differing behaviours (Windows, Linux without UTF-8 locale) because default open(...) uses preferred system encoding
  • (?) can't say what the impact on mobile devices is (Android/iOS)
View gist:1195741bec295c83f574f2bc8bfe3463
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 import App
View kivygtk.kv
#:kivy 1.8.0
orientation: "vertical"
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread"
on_release: app.start_gtk_thread()
$ cat
from 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)
KeyWeeUsr / log.txt
Created Feb 6, 2018 — forked from johannesmueller-fr/log.txt
Unpredictable behaviour in Vector.segment_intersection()
View log.txt
[INFO ] Logger: Record log in /home/waschtl/.kivy/logs/kivy_15-02-02_58.txt
[INFO ] 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>
View kivy sitemap
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
# 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')
View gist:02d51b287e47b035b5a14cfee6e8d1dc
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)