commiting in case the kivy trial fails
This commit is contained in:
Binary file not shown.
9
freechat-client/share/kivy-examples/includes/button.kv
Normal file
9
freechat-client/share/kivy-examples/includes/button.kv
Normal file
@@ -0,0 +1,9 @@
|
||||
#:kivy 1.8.0
|
||||
|
||||
<SpecialButton>:
|
||||
canvas:
|
||||
Color:
|
||||
rgba: 1.0, 0.0, 0.0, 1.0
|
||||
Rectangle:
|
||||
pos: self.pos
|
||||
size: (self.size[0]/4, self.size[1]/4)
|
||||
6
freechat-client/share/kivy-examples/includes/layout.kv
Normal file
6
freechat-client/share/kivy-examples/includes/layout.kv
Normal file
@@ -0,0 +1,6 @@
|
||||
#:kivy 1.8.1
|
||||
#:include button.kv
|
||||
|
||||
<CustomLayout>:
|
||||
SpecialButton:
|
||||
text: 'Includes!'
|
||||
19
freechat-client/share/kivy-examples/includes/main.py
Normal file
19
freechat-client/share/kivy-examples/includes/main.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from kivy.app import App
|
||||
from kivy.uix.boxlayout import BoxLayout
|
||||
from kivy.uix.button import Button
|
||||
|
||||
|
||||
class SpecialButton(Button):
|
||||
pass
|
||||
|
||||
|
||||
class CustomLayout(BoxLayout):
|
||||
pass
|
||||
|
||||
|
||||
class TestApp(App):
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
TestApp().run()
|
||||
5
freechat-client/share/kivy-examples/includes/test.kv
Normal file
5
freechat-client/share/kivy-examples/includes/test.kv
Normal file
@@ -0,0 +1,5 @@
|
||||
#:kivy 1.8.1
|
||||
#:include layout.kv
|
||||
#:include force button.kv
|
||||
|
||||
CustomLayout:
|
||||
Reference in New Issue
Block a user