forked from battulasaivinesh/OM_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMixer.py
34 lines (26 loc) · 1.21 KB
/
Mixer.py
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
import UnitOP
class Mixer(UnitOP.UnitOP):
def __init__(self,**kwargs):
super(Mixer, self).__init__(**kwargs)
self.size2 = (60, 115.75)
self.size = (52, 87)
self.background_normal = 'Mixer1.png'
self.PropertyList = ['INPUT 1','INPUT 2','OUTPUT']
self.connected_to = []
self.Connecting_Points = []
self.line_nos = []
self.OM_Model = 'Mixer'
self.PropertyVal = ['', '', '']
def Update_Conn_Pnts(self):
self.Connecting_Points = [[self.x, self.y + 4], [self.x, self.y + 83], [self.x + 52, self.y + (87 / 2)]]
def on_submit(self, instance):
self.Connecting_Points = [[self.x, self.y + 4], [self.x, self.y + 83], [self.x + 52, self.y + (87 / 2)]]
self.name = self.name_ob.text
self.text_label.text = self.name
UnitOP.UnitOP.drop_connections[self.name] = UnitOP.UnitOP.drop_connections[self.bef_name]
for Property in self.MainButton:
self.connected_to.append(self.drop_connections[Property.text])
self.PropertyVal.append(self.drop_connections[Property.text])
print self.connected_to
if self.connected == False:
self.connect = self.connect + 1