-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yes_or_no_dialog.kv
53 lines (46 loc) · 1.08 KB
/
yes_or_no_dialog.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#:kivy 1.1.0
#: import os os
#: import sys sys
#filename yes_or_no_dialogs.kv
<NewYesOrNoDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
Label:
text: "The current palette is not saved. Do you want to save it now?"
BoxLayout:
size_hint_y: None
height: 30
Button:
text: "Yes"
path: app.user_data_dir
on_release:
print("calling new_yes_no_func with: True")
root.new_yes_no_func(True)
Button:
text: "No"
on_release:
print("calling new_yes_no_func with: False")
root.new_yes_no_func(False)
<LoadYesOrNoDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
Label:
text: "The current palette is not saved. Do you want to save it now?"
BoxLayout:
size_hint_y: None
height: 30
Button:
text: "Yes"
path: app.user_data_dir
on_release:
print("calling load_yes_no_func with: True")
root.load_yes_no_func(True)
Button:
text: "No"
on_release:
print("calling load_yes_no_func with: False")
root.load_yes_no_func(False)