-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.py
More file actions
86 lines (83 loc) · 1.68 KB
/
settings.py
File metadata and controls
86 lines (83 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
'''
Name: settings.py
Author: Rowan Macdonald
Description: The Handler of global variables throughout the program
'''
#IMPORT STANDARD LIBRARY
import sys, os, random, math, time
#IMPORT PyQt5
from PyQt5 import QtCore, QtGui, QtWidgets
#IMPORT EduSuite Functions
import edufunctions
#IMPORT GUI CONTROLLER
import edugui
def init():
'''
USER MANAGEMENT VARIABLES
'''
global user
user = "Guest"
global email
email = "Email"
global dob
dob = "00-00-0000"
global maths_access
maths_access = 0
global comput_access
comput_access = 0
global hist_access
hist_access = 0
global maths_scores
maths_scores = list([0,0,0,0,0,0])
global compute_scores
compute_scores = list([0,0,0,0,0,0])
global hist_scores
hist_scores = list([0,0,0,0,0,0])
global admin_level
admin_level = 0
global synctime
synctime = 120
'''
QUIZ RELATED VARIABLES
'''
global quizid
quizid = ""
global quiztype
quiztype = ""
global totalquest
totalquest = 0
global quizquestions
quizquestions = []
global quizanswers
quizanswers = []
global quizname
quizname = ""
global questionremain
questionremain = 10
global score
score = 0
global questnum
questnum = 0
global totalanswered
totalanswered = 0
global choices
choices = {}
'''
INFORMATION VARIABLES
'''
global activeinfo
activeinfo = {"maths1": 0, "maths2":0, "maths3":0, "maths4":0, "maths5":0, "maths6":0, "compute1":0,"compute2":0,"compute3":0,"compute4":0,"compute5":0,"compute6":0,"hist1":0,"hist2":0,"hist3":0,"hist4":0,"hist5":0,"hist6":0}
global infoimg
infoimg = {}
global info_content
info_content = {'version':'version'}
global infotype
infotype = {}
'''
QUIZ QUERY
'''
global quizactive
quizactive = {}
'''
SYNC INIT
'''