-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhypnic_wrapper.py
More file actions
41 lines (27 loc) · 819 Bytes
/
hypnic_wrapper.py
File metadata and controls
41 lines (27 loc) · 819 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
40
41
# TODO:
# A. Placeholder
__name__ = "hypnic_wrapper"
# Library Inputs
from timeit import default_timer
import random
# Local Inputs
import hypnic_gui
class HypnicWrapper():
def __init__(self):
# M E M B E R V A R I A B L E S
# INITIALIZATION TIMER
# Timer beginning upon initialization of this object
self.initTimer = default_timer()
# OTHER TIMERS
# List of all timers, initialized as containing only self.initTimer
self.timers = [self.initTimer]
self.gui = hypnic_gui.HypnicGUI(self)
def main():
# Seeds the random number generator
random.seed(333)
# Creates and launches the GUI instance
app = HypnicWrapper()
app.gui.mainloop()
# Post-run operations (garbage collection, etc.)
del app.gui.img
main()