Skip to content

Instantly share code, notes, and snippets.

<Button>:
foo: '3'
<MyButton@Button>:
foo: '33'
text: str(self.foo) + '\n' + str(root.foo)
<MyBox>:
MyButton
MyButton
<MyButton@Button>:
on_release: print('foo')
text: 'Foo button'
<MainLayout@FloatLayout>
MainLayout:
MyButton
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.slider import Slider
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.floatlayout import FloatLayout
from kivy.lang import Builder
class MyApp(App):
def build(self):
$ cat mystate.sls
Failed state:
test.fail_without_changes
Ok state:
test.succeed_without_changes
Main state:
cmd.run:
- name: uname
# Maintainer: James Crompton DonJaime at freenet de
# forked from cewe-fotobuch, originally by Jozef Riha, updated by Manuel Conzelmann
declare -a prg_data
# leave only a single line uncommented, comment out the rest
prg_data=(German 24441 'CEWE Fotowelt' 'CEWE Fotowelt' 'CEWE Fotowelt' de_DE)
# prg_data=(Slovak 31916 'CEWE fotosvet' 'CEWE fotosvet' 'CEWE Fotosvet' sk_SK)
# prg_data=(Czech 4860 'CEWE fotosvet' 'CEWE fotosvet' 'CEWE fotosvet' cs_CZ)
# prg_data=(French 7884 'Logiciel de creation CEWE' 'Logiciel de création CEWE' 'CEWE photo' fr_FR)
# prg_data=(Polish 29241 'CEWE Fotoswiat' 'CEWE Fotoswiat' 'CEWE foto' pl_PL)