Skip to content

Instantly share code, notes, and snippets.

View KeyWeeUsr's full-sized avatar

Peter Badida KeyWeeUsr

View GitHub Profile
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
@KeyWeeUsr
KeyWeeUsr / known-problems.md
Created July 2, 2018 18:40 — forked from dolang/known-problems.md
Known Problems

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
KeyWeeUsr / kivy-kv-encoding.md
Created June 30, 2018 13:22 — forked from dolang/kivy-kv-encoding.md
[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)
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
#: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()
@KeyWeeUsr
KeyWeeUsr / main.py server.py.py
Created February 26, 2018 20:06 — forked from anonymous/main.py server.py.py
main.py server.py
$ 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)
@KeyWeeUsr
KeyWeeUsr / log.txt
Created February 6, 2018 22:17 — forked from johannesmueller-fr/log.txt
Unpredictable behaviour in Vector.segment_intersection()
[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>
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')
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())