Kivy tests

This commit is contained in:
Skyler Lehmkuhl 2013-01-02 14:46:17 -05:00
parent 94c6e020ae
commit d4f8b0b59a
3 changed files with 55 additions and 0 deletions

BIN
UbuntuMono-R.ttf Normal file

Binary file not shown.

23
kt.py Normal file
View File

@ -0,0 +1,23 @@
from random import random
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.widget import Widget
from kivy.uix.tabbedpanel import TabbedPanel
from kivy.uix.button import Button
from kivy.graphics import Color, Ellipse, Line
Builder.load_file("lightningbeam.kv")
class Lightningbeam(TabbedPanel):
pass
class MyPaintApp(App):
def build(self):
return Lightningbeam()
if __name__ == '__main__':
MyPaintApp().run()

32
lightningbeam.kv Normal file
View File

@ -0,0 +1,32 @@
#:kivy 1.0
<Lightningbeam>:
do_default_tab: False
TabbedPanelItem:
text: 'Drawing'
BoxLayout:
orientation: "Vertical"
TabbedPanelItem:
text: 'Tools'
GridLayout:
cols: 5
Button:
text: "Select"
Button:
text: "Lasso"
Button:
text: "Resize"
Button:
text: "Text"
Button:
text: "Rectangle"
Button:
text: "Ellipse"
Button:
text: "Painbrush"
TabbedPanelItem:
text: 'ActionScript'
TextInput:
multiline: True
font_name: 'UbuntuMono-R.ttf'