forked from battulasaivinesh/OM_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathom.kv
More file actions
198 lines (189 loc) · 5.09 KB
/
om.kv
File metadata and controls
198 lines (189 loc) · 5.09 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#:import SMatStrm StaticUO.SMatStrm
#:import SMixer StaticUO.SMixer
#:import SFlash StaticUO.SFlash
<SSPopUp>:
id:popup
title: "SIMULATION SETTINGS"
size_hint:(0.7,0.3)
pos_hint:{'center_x': 0.5, 'center_y': 0.5}
opacity: 0.8
auto_dismiss: True
GridLayout:
cols:2
Label:
text: "Non-Linear Solver"
Label:
text: "Non-Linear Solver"
Button:
id: Sim_But
text: "SIMULATE"
Button:
text: " "
<SPopUp>:
title: "SIMULATION STATUS"
size_hint:(0.7,0.25)
auto_dismiss: False
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
opacity: 0.8
FloatLayout:
ProgressBar:
id:ProgBar
size_hint: 1,0.6
pos_hint: {'center_x': 0.5, 'center_y': 0.3}
value: 50
max: 100
Label:
id:status
text: 'Loading...'
size_hint: 1,0.6
pos_hint: {'center_x': 0.5, 'center_y': 0.12}
<MenuButton>
size_hint_y:None
height:20
background_normal:''
background_color:(0.2,0.2,0.2,1)
halign:'left'
size_hint_x:None
width:300
padding:[10,2]
<MButton@Button>:
size_hint_x:None
background_normal:''
background_color:(0.2,0.2,0.2,0.7)
<M2Button@Button>:
size_hint_x:None
background_normal:''
background_color:(0.3,0.3,0.3,0.7)
<OmWidget>:
cols:1
spacing:2.3
size_hint_y:None
size_hint:(1,1)
size:(900,400)
pos_hint:{'center_x': .5, 'center_y': .5}
canvas:
Color:
rgb: 47 / 255., 167 / 255., 212 / 255., 1.
Rectangle:
pos:self.pos
size:self.size
BoxLayout:
size_hint_y:None
size:(0,30)
canvas:
Color:
rgb: 0.2,0.2,0.2
Rectangle:
pos:self.pos
size:self.size
MButton:
width:40
text:'File'
on_release:root.filedropdown.open(*args)
MButton:
width:40
text:'Edit'
on_release:root.editdropdown.open(*args)
MButton:
width:60
text:'Insert'
on_release:root.insertdropdown.open(*args)
MButton:
width:50
text:'Tools'
on_release:root.toolsdropdown.open(*args)
MButton:
width:70
text:'Utilities'
on_release:root.utilitiesdropdown.open(*args)
MButton:
width:100
text:'Optimization'
on_release:root.optimizationdropdown.open(*args)
MButton:
width:70
text:'Scripts'
on_release:root.scriptsdropdown.open(*args)
MButton:
width:70
text:'Results'
on_release:root.resultsdropdown.open(*args)
MButton:
width:70
text:'Plugins'
on_release:root.pluginsdropdown.open(*args)
MButton:
width:70
text:'Windows'
on_release:root.windowsdropdown.open(*args)
MButton:
width:40
text:'View'
on_release:root.viewdropdown.open(*args)
MButton:
width:40
text:'Help'
on_release:root.helpdropdown.open(*args)
BoxLayout:
size_hint_y: None
size:(0, 30)
canvas:
Color:
rgb: 0.3,0.3,0.3,1
Rectangle:
pos:self.pos
size:self.size
BoxLayout:
size_hint_x:0.5
M2Button:
width:130
text:'Compounds'
on_press:root.CompPop(*args)
M2Button:
width:150
text:'Thermodynamics'
on_press:root.ThermoPop(*args)
StackLayout:
orientation: 'rl-tb'
size_hint_y: None
size_hint_x:0.5
size:(0, 30)
M2Button:
text:'COM'
pos_hint:{'':0}
width:50
on_press: root.compile(*args)
M2Button:
text:'SIM'
width:50
on_press: root.SimulationSettings(*args)
BoxLayout:
size_y_hint: None
FloatLayout:
id:b1
size_hint:(0.8,1)
canvas:
Color:
rgba: (1,1,1,1)
Rectangle:
size: self.size
pos: self.pos
BoxLayout:
size_hint:(0.2,1)
orientation:'vertical'
canvas:
Color:
rgb: 0.1,0.1,0.1
Rectangle:
pos:self.pos
size:self.size
BoxLayout:
padding: 10
spacing: 5
size_hint:(1,0.9)
SMixer:
on_included: root.add_but(*args)
SMatStrm:
on_included: root.add_but(*args)
SFlash:
on_included: root.add_but(*args)