-
Notifications
You must be signed in to change notification settings - Fork 0
/
StatusLineLabel.py
41 lines (32 loc) · 1008 Bytes
/
StatusLineLabel.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
30
31
32
33
34
35
36
37
38
39
40
from Logger import Logger
from StatusLineControl import StatusLineControl
from StatusLineBlock import StatusLineBlock
class StatusLineLabel(StatusLineControl):
def __init__(self, name, text):
StatusLineControl.__init__(self, name)
self.text = text
self.label = StatusLineBlock(text)
self.label.name = name
self.count = 0
@property
def blocks(self):
yield self.label
def doOnActivate(self):
#Logger.logMessage("doOnActivate")
#self.label.color = "red"
pass
def doOnDeactivate(self):
#Logger.logMessage("doOnDeactivate")
#self.label.color = None
pass
def doOnUpdate(self):
#Logger.logMessage("doOnUpdate")
#self.count += 1
#self.label.full_text = self.text + str(self.count)
pass
def doOnUpdateDone(self):
#Logger.logMessage("doOnUpdateDone")
pass
def doOnClick(self, event):
#self.isActive = True
pass