-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRollCalling.py
39 lines (30 loc) · 854 Bytes
/
RollCalling.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
# Coded by Eric Chen / D1172271
# ISTM Purdue
#
# Time Elapsed: 15Hr
# Date: 2023/11/25
# CopyRight: GNU GPLv3
# DESC: RollColling FLASK Server
import logging
from PyQt6.QtWidgets import QApplication, QMainWindow
from Library.GUI import Panel
# DESC: The all in one class that handles everything
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.rollcalling_panel = Panel.RollCalling('0.0.0.0', 8888)
self.setCentralWidget(self.rollcalling_panel)
self.setFixedSize(770, 460)
# DESC: The entrypoint
def main():
# configuring logger for all modules
logging.basicConfig(level=logging.INFO,
format='[%(levelname)s] - Logger:%(name)s - %(message)s(%(name)s:%(lineno)d)')
# start application
app = QApplication([])
window = MainWindow()
window.show()
app.exec()
return
if __name__ == "__main__":
main()