Kivy tests
This commit is contained in:
parent
94c6e020ae
commit
d4f8b0b59a
Binary file not shown.
|
|
@ -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()
|
||||
|
|
@ -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'
|
||||
Loading…
Reference in New Issue