-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
94 lines (82 loc) · 3.31 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#:kivy 2.0.0
<CFCLayout>
BoxLayout:
orientation:'vertical'
size: root.width, root.height
MDToolbar:
title: 'CFConverter'
md_bg_color: .2,.2,.2,1
specific_text_color: 1, 1, 1, 1
MDBottomNavigation:
MDBottomNavigationItem:
name: 'c2fc'
text: 'C2F'
icon: 'temperature-celsius'
MDTextField:
id: scelsius
hint_text: 'Enter Celsius to convert:'
input_filter: 'float'
halign: 'center'
font_name:'fonts/digital.ttf'
size_hint_x: None
mode: "rectangle"
max_text_length: 15
helper_text_mode: "on_focus"
helper_text: "Maximum lenght is 15"
width: 500
pos_hint: {"center_x": 0.5, "center_y": 0.6}
MDLabel:
id: afarenheit
text: ""
halign: 'center'
font_name:'fonts/digital.ttf'
size_hint_x: None
width: root.width
pos_hint: {"center_x": 0.5, "center_y": 0.5}
MDRaisedButton:
text: "Caculate"
font_name:'fonts/drawflygo.otf'
size_hint_x: None
width: 100
pos_hint: {"center_x": 0.5, "center_y": 0.4}
on_release: root.c2f_cal()
MDBottomNavigationItem:
name: 'f2cc'
text: 'F2C'
icon: 'temperature-fahrenheit'
MDTextField:
id: sfarenheit
hint_text: 'Enter Farenheit to convert:'
input_filter: 'float'
halign: 'center'
font_name:'fonts/digital.ttf'
size_hint_x: None
mode: "rectangle"
max_text_length: 16
helper_text_mode: "on_focus"
helper_text: "Maximum lenght is 15"
width: 500
pos_hint: {"center_x": 0.5, "center_y": 0.6}
MDLabel:
id: acelsius
text: ""
halign: 'center'
font_name:'fonts/digital.ttf'
size_hint_x: None
width: root.width
pos_hint: {"center_x": 0.5, "center_y": 0.5}
MDRaisedButton:
text: "Caculate"
font_name:'fonts/drawflygo.otf'
size_hint_x: None
width: 100
pos_hint: {"center_x": 0.5, "center_y": 0.4}
on_release: root.f2c_cal()
MDBottomNavigationItem:
name: 'abt'
text: 'HELP'
icon: 'help'
MDLabel:
text: "Celsius and Farenheit Converter version 1.5\n\nThis program was created in kivy language by Naveed\n\nYou can find the source code of this at\n\nhttps://github.com/naveednilawfar/cfc"
halign: 'center'
pos_hint: {"center_x": 0.5, "center_y": 0.5}