forked from battulasaivinesh/OM_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStaticUO.py
More file actions
47 lines (39 loc) · 1.3 KB
/
Copy pathStaticUO.py
File metadata and controls
47 lines (39 loc) · 1.3 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
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
class SMixer(Button):
included = NumericProperty(0)
UO = Mixer
def __init__(self, **kwargs):
super(SMixer, self).__init__(**kwargs)
self.size_hint = None, None
self.size = (52, 87)
self.background_normal = 'Mixer1.png'
self.bind(on_press=self.Pressed)
def Pressed(self, instance):
self.included = self.included + 1
class SMatStrm(Button):
included = NumericProperty(0)
UO = Stream
def __init__(self, **kwargs):
super(SMatStrm, self).__init__(**kwargs)
self.size_hint = None, None
self.size = (30, 15)
self.background_normal = 'MatStm.png'
self.bind(on_press=self.Pressed)
def Pressed(self, instance):
self.included = self.included + 1
class SFlash(Button):
included = NumericProperty(0)
UO = Flash
def __init__(self, **kwargs):
super(SFlash, self).__init__(**kwargs)
self.size_hint = None, None
self.size = (50, 134)
self.background_normal = 'Flash.png'
self.bind(on_press=self.Pressed)
def Pressed(self, instance):
self.included = self.included + 1