-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStaticUO.py
More file actions
93 lines (76 loc) · 2.38 KB
/
StaticUO.py
File metadata and controls
93 lines (76 loc) · 2.38 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
"""
THIS ARE THE BUTTONS PRESENT ON THE UNIT OPERATIONS SHELF
"""
from kivy.uix.button import Button
from kivy.properties import NumericProperty
from UnitOP import UnitOP
from Mixer import Mixer
from MatStrm import Stream
from Flash import Flash
from Splitter import Splitter
from Valve import Valve
class SMixer(Button):
"""
Mixer button for the unit operations shelf
"""
included = NumericProperty(0)
UO = Mixer
def __init__(self, **kwargs):
super(SMixer, self).__init__(**kwargs)
self.size_hint = None, None
self.width = 150
self.height = 103
self.background_normal = 'Images/mixer_new.png'
self.background_down = 'Images/mixer_new.png'
class SMatStrm(Button):
"""
Material stream button for the unit operations shelf
"""
included = NumericProperty(0)
UO = Stream
def __init__(self, **kwargs):
super(SMatStrm, self).__init__(**kwargs)
self.size_hint = None, None
self.width = 150
self.height = 90
self.background_normal = 'Images/mat_strm_new.png'
self.background_down = 'Images/mat_strm_new.png'
class SFlash(Button):
"""
Flash button for the unit operations shelf
"""
included = NumericProperty(0)
UO = Flash
def __init__(self, **kwargs):
super(SFlash, self).__init__(**kwargs)
self.width = 150
self.height = 103
self.size_hint = None, None
self.background_normal = 'Images/flash_new.png'
self.background_down = 'Images/flash_new.png'
class SSplitter(Button):
"""
Splitter button for the unit operations shelf
"""
included = NumericProperty(0)
UO = Splitter
def __init__(self, **kwargs):
super(SSplitter, self).__init__(**kwargs)
self.width = 150
self.height = 130
self.size_hint = None, None
self.background_normal = 'Images/splitter_new.png'
self.background_down = 'Images/splitter_new.png'
class SValve(Button):
"""
Valve Button for the unit operations shelf
"""
included = NumericProperty(0)
UO = Valve
def __init__(self, **kwargs):
super(SValve, self).__init__(**kwargs)
self.width = 150
self.height = 130
self.size_hint = None, None
self.background_normal = 'Images/valve_new.png'
self.background_down = 'Images/valve_new.png'