Skip to content

Instantly share code, notes, and snippets.

View tshirtman's full-sized avatar

Gabriel Pettier tshirtman

View GitHub Profile
<YourWidget>:
canvas.before:
Color:
rgb: self.variable_color
Rectangle:
pos: self.pos
size: self.size
<MyScrollView>:
canvas:
BoxLayout:
orientation: 'horizontal'
Button:
size_hint_y: .5
center_y: root.center_y
Button:
Button:
# APPLOADER - An apploader that loads apps using the screen manager
#imports
from kivy.app import App
#from kivy.properties import NumericProperty
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen, SwapTransition
from kivy.properties import ObjectProperty
from subprocess import call
from kivy.base import EventLoop
''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'.
The filters to be applied to the files in the directory.
The filters are not reset when the path changes. You need to do that
yourself if desired.
There are two kinds of filters :
filename patterns : e.g. ['\*.png'].
You can use the following patterns:
''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'.
The filters to be applied to the files in the directory.
The filters are not reset when the path changes. You need to do that
yourself if desired.
There are two kinds of filters :
filename patterns : e.g. ['\*.png'].
You can use the following patterns:
''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'.
The filters to be applied to the files in the directory.
The filters are not reset when the path changes. You need to do that
yourself if desired.
There are two kinds of filters :
filename patterns : e.g. ['\*.png'].
You can use the following patterns:
''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'.
The filters to be applied to the files in the directory.
The filters are not reset when the path changes. You need to do that
yourself if desired.
There are two kinds of filters :
filename patterns : e.g. ['\*.png'].
You can use the following patterns:
" show insecable spaces that i sometime insert by accident
hi insecable ctermbg=red cterm=NONE guibg=red
match insecable / /
"hide passwords when editing (you can use select mode to see it), doesn't work
"with all terminal types, but useful
hi Password ctermfg=black ctermbg=black cterm=NONE guifg=black guibg=black
match Password /pass.*\s*=\s*\k\{-}\zs[^ ]*\ze.\{-}/