-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebugWidget.py
More file actions
39 lines (29 loc) · 813 Bytes
/
debugWidget.py
File metadata and controls
39 lines (29 loc) · 813 Bytes
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
# debugWidget.py
# Example implementation of an extremely simple widget. Used for testing
from widget import Widget
class debugWidget(Widget):
@property
def widgetName(self):
return "Debug Widget"
@property
def widgetID(self):
return "beadugan:debugwidget"
@property
def widgetHTML(self):
return None
@property
def widgetData(self):
return None
@property
def widgetPreferences(self):
return None
@property
def widgetDefaultPreferences(self):
return None
@property
def updateTimer(self):
return 5000
def update(self):
print("Debug Widget Running!")
def handle_event(self, event, args):
print("Debug Widget Sent Command " + str(event) + " with arguments " + str(args))