Skip to content

Commit 996ccd9

Browse files
committed
add on mac
1 parent d180cc9 commit 996ccd9

27 files changed

+897
-101
lines changed

dal_rpc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 187e30e1ca12401d15e61e35d51b126e1e90a77d

gui/demos/Simple.kv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# File name: kivy_language.py
2+
# :kivy 1.11.1
3+
4+
<Label>
5+
text: 'hello' ' world!!!'

gui/demos/Simple2.kv

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# File name: kivy_language2.py
2+
# :kivy 1.11.1
3+
4+
5+
<Widgets>:
6+
Button:
7+
size: 100,75
8+
pos: 0,0
9+
text: 'confirm'
10+
color: 0,1,0,1
11+
font_size:24
12+
13+
14+
Button:
15+
size: 100,75
16+
pos: 100,0
17+
text: 'confirm2'
18+
color: 1,1,1,1
19+
font_size:24

gui/demos/Simple3.kv

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# File name: resizeable_placement.py
2+
# :kivy 1.11.1
3+
4+
<Button>
5+
font_size:24
6+
7+
<Widgets>:
8+
Button:
9+
size: 100,75
10+
pos: root.x, root.top - self.height
11+
text: 'confirm'
12+
color: 0,1,0,1
13+
14+
Button:
15+
size: root.right//2,root.height//2
16+
pos: root.right - self.width,0
17+
text: 'confirm2'
18+
color: 1,1,1,1

gui/demos/Simple4.kv

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# File name: float_layout.py
2+
# :kivy 1.11.1
3+
4+
<Button>
5+
font_size:24
6+
color:0,1,0,1
7+
size_hint:0.3,0.2
8+
9+
<FloatLayout>:
10+
Button:
11+
text: "kivy"
12+
pos_hint:{"x":0.5, "top":1}
13+
14+
Button:
15+
text: "tutorials"
16+
pos_hint:{"right":1, "y":0}

gui/demos/draw_app.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
from kivy.app import App
2+
from kivy.uix.widget import Widget
3+
from kivy.graphics import Line
4+
5+
class DrawInput(Widget):
6+
def on_touch_down(self, touch):
7+
# touch mouse motion event
8+
print(touch)
9+
with self.canvas:
10+
touch.ud["line"]=Line(points=(touch.x, touch.y))
11+
12+
def on_touch_move(self, touch):
13+
# touch mouse motion event
14+
print(touch)
15+
touch.ud['line'].points += (touch.x, touch.y)
16+
17+
def on_touch_up(self, touch):
18+
# touch mouse motion event
19+
print(touch)
20+
21+
22+
class Simple4(App):
23+
def build(self):
24+
return DrawInput()
25+
26+
27+
if __name__ == "__main__":
28+
Simple4().run()

gui/demos/float_layout.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from kivy.app import App
2+
from kivy.uix.floatlayout import FloatLayout
3+
4+
5+
class Simple4(App):
6+
def build(self):
7+
return FloatLayout()
8+
9+
10+
if __name__ == "__main__":
11+
Simple4().run()

gui/demos/hello.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from kivy.app import App
2+
from kivy.uix.label import Label
3+
4+
5+
class Simple(App):
6+
def build(self):
7+
return Label(text="hello world")
8+
9+
10+
if __name__ == "__main__":
11+
Simple().run()

gui/demos/kivy_language.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from kivy.app import App
2+
from kivy.uix.label import Label
3+
4+
5+
class Simple(App):
6+
def build(self):
7+
return Label()
8+
9+
10+
if __name__ == "__main__":
11+
Simple().run()

gui/demos/kivy_language2.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from kivy.app import App
2+
from kivy.uix.label import Label
3+
from kivy.uix.widget import Widget
4+
5+
6+
class Widgets(Widget):
7+
pass
8+
9+
10+
class Simple2(App):
11+
def build(self):
12+
return Widgets()
13+
14+
15+
if __name__ == "__main__":
16+
Simple2().run()

0 commit comments

Comments
 (0)